| 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

Spinint

The most common data type for which spinning behavior is useful is that of integers. The Spinint iwidget offers this capability by specializing the Spinner class. Additional options are provided which allow specification of a step and range values which vary and limit the cycling. A boolean wrap option also exists which stipulates the action to be taken upon reaching the minimum and maximum values. For further information, see the Spinint manpage

Components: downarrow entry hull label uparrow
				

wm title . "Spinint Example"

##=========================================================
##	Create a couple of spinint iwidgets
##=========================================================
##
iwidgets::spinint .height \
	-labeltext "Enter Your Height (cm): " \
	-fixed 3 \
	-width 4 \
	-range {80 250} \
	-wrap no


iwidgets::spinint .weight \
	-labeltext "Enter Your Weight (kg): " \
	-fixed 3 \
	-width 4 \
	-range {10 700} \
	-step 5


pack .height .weight \
	-padx 5 \
	-pady 5

##
##	Start at a common value
##
.height clear
.weight clear

.height insert 0 120
.weight insert 0 400

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