iwidgets::spinint(1)
β¨ NAME β¨
ok so bestie, this is iwidgets::spinint from the [incr Widgets] crew β it creates and manipulates a integer spinner widget π‘π’ periodt.
π SYNOPSIS π
iwidgets::spinint pathName ?options?
that's it that's the whole vibe π
𧬠INHERITANCE π§¬
the family tree is giving royal lineage π so listen up:
itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Spinner <- iwidgets::Spinint
likeβ¦ it inherited everything from its ancestors and honestly? ate. π₯
π STANDARD OPTIONS π
these are the classics, the basics, the essentials bestie:
backgroundborderWidthcursorexportSelectionforegroundhighlightColorhighlightThicknessinsertBackgroundinsertBorderWidthinsertOffTimeinsertOnTimeinsertWidthjustifyreliefselectBackgroundselectBorderWidthselectForegroundtextVariable
See the "options" manual entry for details on the standard options π
π ASSOCIATED OPTIONS π
showstate
See the "entry" manual entry for details on the associated options π«Ά
π§ INHERITED OPTIONS π§
ok these are the ones it got handed down from its ancestors, no cap:
commandchildSitePosfixedfocusCommandinvalidtextBackgroundtextFontvalidatewidth
See the "entryfield" widget manual entry for details on the above inherited options π
and then more from the labeledwidget side:
disabledForegroundlabelBitmaplabelFontlabelImagelabelMarginlabelPoslabelTextlabelVariablestatesticky
See the "labeledwidget" widget manual entry for details on the above inherited options πΈ
and from the spinner:
arroworientdecrementincrementrepeatDelayrepeatInterval
See the "spinner" widget manual entry for details on the above inherited options β
π¦ WIDGET-SPECIFIC OPTIONS π¦
these are the ones that make spinint spinint, the main character energy fr fr:
- Name:
range - Class:
Range - Command-Line Switch:
-range
Specifies a two element list of minimum and maximum integer values. The default is no range, {{} {}} π
- Name:
step - Class:
Step - Command-Line Switch:
-step
Specifies the increment/decrement value. The default is 1 π£
- Name:
wrap - Class:
Wrap - Command-Line Switch:
-wrap
Specifies whether to wrap the spinner value upon reaching the minimum or maximum value, in any of the forms acceptable to Tcl_GetBoolean. The default is true π
π DESCRIPTION π
The iwidgets::spinint command creates a spinint widget. The spinint allows "spinning" of integer values within a specified range with wrap support. The spinner arrows may be drawn horizontally or vertically π
π οΈ METHODS π οΈ
The iwidgets::spinint command creates a new Tcl command whose 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 ...?
option and the args determine the exact behavior of the command. The following commands are possible for spinint widgets π
π ASSOCIATED METHODS π
deletegeticursorindexinsertpeekscanselectionxview
See the "entry" manual entry for details on the associated methods π
𧬠INHERITED METHODS π§¬
childsiteclear
See the "entryfield" manual entry for details on the associated methods β¨
π WIDGET-SPECIFIC METHODS π
pathName cget optionβ Returns the current value of the configuration option given by option. Option may have any of the values accepted by theiwidgets::spinintcommand.pathName configure ?option? ?value option value ...?β Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (seeTk_ConfigureInfofor 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 theiwidgets::spinintcommand.pathName downβ Decrement the spinner value by the value given in thestepoption β¬οΈpathName upβ Increment the spinner value by the value given in thestepoption β¬οΈ
π§© COMPONENTS π§©
See the "Spinner" widget manual entry for details on the integer spinner component items π‘
π EXAMPLE π
here's the whole thing in action bestie, copy it exactly:
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
π AUTHOR π
Sue Yockey π
π KEYWORDS π
spinint, widget
and that's a wrap bestie!! π this lil page comes to you from the Tk manual, page iwidgets::spinint(1) β you're welcome, go slay some integer spinners πβ¨π¦π
π¦ where this page comes from
- debian bookworm: iwidgets4-doc 4.1.1-2.1
- debian trixie: iwidgets4-doc 4.1.1-4
- ubuntu jammy: iwidgets4-doc 4.1.1-2.1
- ubuntu noble: iwidgets4-doc 4.1.1-2.1
- ubuntu resolute: iwidgets4-doc 4.1.1-4
- ubuntu stonking: iwidgets4-doc 4.1.1-4
- Copyright (c) 1995 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms