| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Timefield

The timefield iwidget consists of a specialized entry widget that allows the user to more easily enter a time. The value in the entry is separated with colons, so that the user knows exactly which is the hour, minute and second values. The programmer can manipulate the entry field with the show public method. Relative times can be entered using the show method, such as \"2 hours ago\".The validation level can also be specified with the -iq option. The different levels are low and high, where high will not allow invalid times, and low will allow invalid times. The programmer can use the isvalid to validate the entry at a later time if the -iq option is set to low. For further information, see the Timefield manpage

Components: hull label time
				

wm title . "Timefield Example"

##=========================================================
##	Create a Timefield iwidget
##=========================================================
##
iwidgets::timefield .tf \
  -labeltext "Departure Time:" \
  -textbackground #82E6C8 \
  -textfont {lucida 14 bold}


pack .tf \
  -fill both \
  -expand true

.tf show "2 hours ago"

Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site