iwidgets::spinint - Create and manipulate a integer spinner wid-
get
iwidgets::spinint pathName ?options?
itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Spinner <-
iwidgets::Spinint
background borderWidth cursor exportSelection
options.
options.
inherited options.
above inherited options.
arroworient decrement increment repeatDelay
repeatInterval
inherited options.
ues. The default is no range, {{} {}}.
minimum or maximum value in any of the forms acceptable to
_________________________________________________________________
spinint allows «spinning» of integer values within a specified range with wrap support. The spinner arrows may be drawn hori- zontally or vertically.
name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
delete get icursor index
insert peek scan selection
xview
ods.
methods.
pathName cget option
option. Option may have any of the values accepted by the iwid-
gets::spinint command.
pathName configure ?option? ?value option value ...?
option is specified, returns a list describing all of the avail-
able options for pathName (see Tk_ConfigureInfo for information
on the format of this list). If option is specified with no
value, then the command returns a list describing the one named
option (this list will be identical to the corresponding sublist
of the value returned if no option is specified). If one or more
option-value pairs are specified, then the command modifies the
given widget option(s) to have the given value(s); in this case
the command returns an empty string. Option may have any of the
values accepted by the iwidgets::spinint command.
pathName down
option.
pathName up
option.
spinner component items.
package require Iwidgets 4.0
option add *textBackground white
iwidgets::spinint .si -labeltext «Temperature» -labelpos w \ -fixed yes -width 5 -range {32 212}
pack .si -pady 10
spinint, widget