| 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

Watch

The watch iwidget is a analog clock on a canvas, with 2 radiobuttons to represent AM and PM. Each hand of the clock is movable via Button 1, so the user can adjust the time by moving the hands to the desired location on the clock. The get public method can be used to retrieve the value of the clock. The appearance of the clock can be modify via configuration options. For further information, see the Watch manpage

Components: am canvas frame hull pm
				

wm title . "Watch Example"

##=========================================================
##	Create a Watch iwidget
##=========================================================
##
iwidgets::watch .w \
  -clockcolor #82E6C8 \
  -hourcolor black \
  -minutecolor black \
  -secondcolor red \
  -pivotcolor #bbbbbb

pack .w \
  -fill both \
  -expand true

##
##	display the current time
##
.w show

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