1iwidgets::spinint  − Create and manipulate a integer spinner wid‐
2get iwidgets::spinint pathName ?options?   itk::Widget  <‐  iwid‐
3gets::Labeledwidget <‐ iwidgets::Spinner <‐ iwidgets::Spinint

background borderWidth cursor exportSelection

foreground highlightColor highlightThickness insertBackground

insertBorderWidth insertOffTime insertOnTime insertWidth

justify relief selectBackground selectBorderWidth

selectForeground textVariable

9See  the  "options"  manual entry for details on the standard op‐
10tions.

show state

12See the "entry" manual entry for details on  the  associated  op‐
13tions.

command childSitePos fixed focusCommand

invalid textBackground textFont validate

width

17See the "entryfield" widget manual entry for details on the above
18inherited options.

disabledForeground labelBitmap labelFontlabelImage

labelMargin labelPos labelText labelVariable

state sticky

22See the "labeledwidget" widget manual entry for  details  on  the
23above inherited options.

arroworient decrement increment repeatDelay

repeatInterval

26See  the  "spinner"  widget manual entry for details on the above
27inherited options.
28
29Name:           range
30Class:          Range
31Command‐Line Switch:           ‐range
32Specifies a two element list of minimum and maximum integer  val‐
33ues.  The default is no range, {{} {}}.
34Name:           step
35Class:          Step
36Command‐Line Switch:           ‐step
37Specifies the increment/decrement value.  The default is 1.
38Name:           wrap
39Class:          Wrap
40Command‐Line Switch:           ‐wrap
41Specifies  whether  to  wrap  the spinner value upon reaching the
42minimum or maximum value  in  any  of  the  forms  acceptable  to

Tcl_GetBoolean. The default is true.

44
45The  iwidgets::spinint  command  creates  a  spinint widget.  The
46spinint allows "spinning" of integer values  within  a  specified
47range  with  wrap support.  The spinner arrows may be drawn hori‐
48zontally or vertically.
49
50The iwidgets::spinint command creates a  new  Tcl  command  whose
51name is pathName.  This command may be used to invoke various op‐
52erations on the widget.  It has the following general form: path‐

Name option ?arg arg ...? Option and the args determine the ex‐

54act behavior of the command.  The following commands are possible
55for spinint widgets:

delete get icursor index

insert peek scan selection

xview

59See  the "entry" manual entry for details on the associated meth‐
60ods.

childsite clear

62See the "entryfield" manual entry for details on  the  associated
63methods.   pathName  cget option Returns the current value of the
64configuration option given by option.  Option may have any of the
65values  accepted by the iwidgets::spinint command.  pathName con‐

figure ?option? ?value option value ...? Query or modify the

67configuration  options of the widget.  If no option is specified,
68returns a list describing all of the available options for  path‐

Name (see Tk_ConfigureInfo for information on the format of this

70list).  If option is specified with no value,  then  the  command
71returns a list describing the one named option (this list will be
72identical to the corresponding sublist of the value  returned  if
73no  option  is specified).  If one or more option−value pairs are
74specified, then the command modifies the given  widget  option(s)
75to  have the given value(s);  in this case the command returns an
76empty string.  Option may have any of the values accepted by  the

iwidgets::spinint command. pathName down Decrement the spinner

78value by the value given in the step option.  pathName up  Incre‐
79ment the spinner value by the value given in the step option.
80
81See  the "Spinner" widget manual entry for details on the integer
82spinner component items.
83
84 package require Iwidgets 4.0
85 option add *textBackground white
86
87 iwidgets::spinint .si ‐labeltext "Temperature" ‐labelpos w \
88    ‐fixed yes ‐width 5 ‐range {32 212}
89
90 pack .si ‐pady 10 Sue Yockey spinint, widget
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum