| 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

Spindate

The spindate iwidget creates a set of spinners for use in date entry. The set includes three spinners configured to support day, month and year entry. Options allow control over the display of each spinner, the format of the month, and the orientation. For further information, see the Spindate manpage

Components: day hull month year
				

wm title . "Spindate Example"

##=========================================================
##	Create spindate iwidget
##=========================================================
##
iwidgets::spindate .sd \
	-labelpos w \
	-yeardigits 4 \
	-monthformat brief \
	-daylabel "Day,Dia,Tag" \
	-monthlabel "Month,Mes,Monat" \
	-yearlabel "Year,Ano,Jahr"

.sd show today

pack .sd \
	-expand 1 \
	-fill both

##
##	bind to when the cursor enters the iwidget
##
bind .sd  {puts "Seconds: [.sd get -clicks] Date: [.sd get -string]"}

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