|
Timeentry
The timeentry iwidget consists of a specialized entry widget and a popup watch, that is invoked by an icon next to the entry widget. The time can be entered directly in the entry or by using the watch to specify the time. Using button 1, the watch can be moved to the desired time, and when the watch is closed, the entry field is updated with the time. The programmer can use the show and get public methods to work with the iwidget. The Timeentry iwidget inherits from the Timefield iwidget, so the methods and options from the Timefield can be used as well.
For further information, see the Timeentry
manpage
Components: hull iconbutton label time
|
wm title . "Timeentry Example"
##=========================================================
## Create a Timeentry iwidget
##=========================================================
##
iwidgets::timeentry .te \
-labeltext "Departure Time:" \
-textbackground #82E6C8 \
-textfont {lucida 14 bold} \
-format military \
-grab local
pack .te \
-fill both \
-expand true
|
Download this sample code |
|