1iwidgets::timeentry  −  Create  and manipulate a timeentry widget

iwidgets::timeentry pathName ?options? itk::Widget <‐ iwid‐

3gets::LabeledWidget <‐ iwidgets::Timefield <‐ iwidgets::Timeentry

background borderWidth cursor exportSelection

foreground highlightColor highlightThickness insertBackground

justify relief

7See  the  "options"  manual entry for details on the standard op‐
8tions.

disabledForeground labelBitmap labelFontlabelImage

labelMargin labelPos labelText labelVariable

state sticky

12See the "labeledwidget" class manual entry for details  on  these
13inherited options.

command format seconds textBackground

textFont

16See  the  "timefield" class manual entry for details on these in‐
17herited options.

hourRadius hourColor minuteRadius minuteColor

pivotRadius pivotColor secondRadius secondColor

clockColor clockStipple tickColor watchHeight

watchWidth

22See the "watch" manual entry for details on  the  associated  op‐
23tions.
24Name:           closeText
25Class:          Text
26Command‐Line Switch:           ‐closetext
27Specifies  the  text  to  be displayed on the close button of the
28watch popup.  The default is Close.
29Name:           grab
30Class:          Grab
31Command‐Line Switch:           ‐grab
32Specifies the grab level, local or global, to be obtained  before
33bringing  up  the  popup watch.  The default is global.  For more
34information concerning grab levels, consult the documentation for
35Tk’s grab command.
36Name:           icon
37Class:          Icon
38Command‐Line Switch:           ‐icon
39Specifies the watch icon image to be used in the timeentry.  This
40image must have been created previously  with  the  image  create
41command.  Should one not be provided, then one will be generated,
42pixmap if possible, bitmap otherwise.
43Name:           state
44Class:          State
45Command‐Line Switch:           ‐state
46Specifies the state of the widget which may be disabled  or  nor‐

mal. A disabled state prevents selection of the timefield or

48time icon button.
49
50The iwidgets::timeentry command creates a time entry field with a
51popup  watch by combining the timefield and watch widgets togeth‐
52er.  This allows a user to enter the time via the keyboard or  by
53using  the  mouse  and selecting the watch icon which brings up a
54popup watch.
55
56The iwidgets::timeentry command creates a new Tcl  command  whose
57name is pathName.  This command may be used to invoke various op‐
58erations on the widget.  It has the following general form: path‐

Name option ?arg arg ...? Option and the args determine the ex‐

60act behavior of the command.  The following commands are possible
61for timeentry widgets:

get isvalid show

63See  the  "timefield"  manual entry for details on the associated
64methods.  pathName cget option Returns the current value  of  the
65configuration option given by option.  Option may have any of the
66values accepted by  the  iwidgets::timeentry  command.   pathName

configure ?option? ?value option value ...? Query or modify the

68configuration options of the widget.  If no option is  specified,
69returns  a list describing all of the available options for path‐

Name (see Tk_ConfigureInfo for information on the format of this

71list).   If  option  is specified with no value, then the command
72returns a list describing the one named option (this list will be
73identical  to  the corresponding sublist of the value returned if
74no option is specified).  If one or more option−value  pairs  are
75specified,  then  the command modifies the given widget option(s)
76to have the given value(s);  in this case the command returns  an
77empty  string.  Option may have any of the values accepted by the

iwidgets::timeentry command.

79
80Name:           label
81Class:          Label
82The label component provides a label component to used to identi‐
83fy  the time.  See the "label" widget manual entry for details on
84the label component item.
85Name:           iconbutton
86Class:          Label
87The iconbutton component provides a labelbutton component to  act
88as a lightweight button displaying the watch icon.  Upon pressing
89the labelbutton, the watch appears.  See the "label" widget manu‐
90al entry for details on the labelbutton component item.
91Name:           time
92Class:          Entry
93The  time  component  provides the entry field for time input and
94display.  See the "entry" widget manual entry for details on  the
95time component item.
96
97 package require Iwidgets 4.0
98 iwidgets::timeentry .te
99 pack .te Mark L. Ulferts timeentry, widget
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum