iwidgets::spintime(1)
β¨ NAME β¨
iwidgets::spintime β bestie, this is the one that creates and manipulates time spinner widgets π that's it, that's the whole job, and it does it gorgeously.
Oh and hi, welcome to the iwidgets::spintime(1) manual page, straight out of [incr Widgets]. Grab a snack, we're gonna go through every single option together π
β¨ SYNOPSIS β¨
iwidgets::spintime pathName ?options?
π INHERITANCE π
itk::Widget <- iwidgets::Spintime
so it's giving descended from itk::Widget, main character lineage, no notes π
π STANDARD OPTIONS π
backgroundcursorforegroundrelief
See the "options" manual entry for the details on the standard options, bestie β that's where the lore lives π
π¦ ASSOCIATED OPTIONS π¦
textBackground,textFont
See the "entryfield" manual entry for details on the above associated options π
labelFont,labelMargin
See the "labeledwidget" manual entry for details on the above associated options β¨
arrowOrient,repeatDelay,repeatInterval
See the "spinner" manual entry for details on the above associated options π
π WIDGET-SPECIFIC OPTIONS π
These are the ones that are so spintime and nobody else, periodt.
-labelposβ Name:labelPosΒ· Class:PositionΒ· Command-Line Switch:-labelpos
Tells you where the label sits along the sides of the various spinners: n, e, s, or w. The default is w. west side story, literally
-hourlabelβ Name:hourLabelΒ· Class:TextΒ· Command-Line Switch:-hourlabel
The text of the label for the hour spinner. The default is "Hour". π
-houronβ Name:hourOnΒ· Class:hourOnΒ· Command-Line Switch:-houron
Whether or not to display the hour spinner, in any of the forms acceptable to Tcl_GetBoolean. The default is true.
-hourwidthβ Name:hourWidthΒ· Class:WidthΒ· Command-Line Switch:-hourwidth
The width of the hour spinner, in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels.
-militaryonβ Name:militaryOnΒ· Class:militaryOnΒ· Command-Line Switch:-militaryon
Specifies use of a 24 hour clock for hour display, in any of the forms acceptable to Tcl_GetBoolean. The default is true. 24hr girlies rise up β°
-minutelabelβ Name:minuteLabelΒ· Class:TextΒ· Command-Line Switch:-minutelabel
The text of the label for the minute spinner. The default is "Minute".
-minuteonβ Name:minuteOnΒ· Class:minuteOnΒ· Command-Line Switch:-minuteon
Whether or not to display the minute spinner, in any of the forms acceptable to Tcl_GetBoolean. The default is true.
-minutewidthβ Name:minuteWidthΒ· Class:WidthΒ· Command-Line Switch:-minutewidth
The width of the minute spinner, in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels.
-orientβ Name:orientΒ· Class:OrientΒ· Command-Line Switch:-orient
The orientation of the hour, minute, and second spinners: vertical or horizontal. The default is horizontal. we lay flat, we vibe π
-secondlabelβ Name:secondLabelΒ· Class:TextΒ· Command-Line Switch:-secondlabel
The text of the label for the second spinner. The default is "Second" β yes, with no period at the end, that's just how she is π
-secondonβ Name:secondOnΒ· Class:secondOnΒ· Command-Line Switch:-secondon
Whether or not to display the second spinner, in any of the forms acceptable to Tcl_GetBoolean. The default is true.
-secondwidthβ Name:secondWidthΒ· Class:WidthΒ· Command-Line Switch:-secondwidth
The width of the second spinner, in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels.
-timemarginβ Name:timeMarginΒ· Class:MarginΒ· Command-Line Switch:-timemargin
The margin space between the hour, minute, and second spinners, in any of the forms acceptable to Tcl_GetPixels. The default is 1 pixel.
πΈ DESCRIPTION πΈ
The iwidgets::spintime command creates a set of spinners for use in time value entry. The set includes an hour, minute, and second spinner widget. three little icons working together, we love a team π
π METHODS π
The iwidgets::spintime 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 spintime widgets:
π WIDGET-SPECIFIC METHODS π
pathName cgetoption
Returns the current value of the configuration option given by option. option may have any of the values accepted by the iwidgets::spintime command.
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 (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::spintime command.
pathName get?format?
Returns the current contents of the spintime widget in a format of string or as an integer clock value using the -string and -clicks format options respectively. The default is by string. Reference the clock command for more information on obtaining time and its formats. iykyk β³
pathName showtime
Changes the currently displayed time to be that of the time argument. The time may be specified either as a string, an integer clock value or the keyword "now". Reference the clock command for more information on obtaining times and its format.
π§ COMPONENTS π§
- Name:
hourΒ· Class:Spinint
The hour component is the hour spinner of the time spinner. See the SpinInt widget manual entry for details on the hour component item.
- Name:
minuteΒ· Class:Spinint
The minute component is the minute spinner of the time spinner. See the SpinInt widget manual entry for details on the minute component item.
- Name:
secondΒ· Class:Spinint
The second component is the second spinner of the time spinner. See the SpinInt widget manual entry for details on the second component item.
β EXAMPLE β
Steal this, bestie, it's exact:
package require Iwidgets 4.0 iwidgets::spintime .st pack .st -padx 10 -pady 10
π AUTHOR π
Sue Yockey Β· Mark L. Ulferts
legends, honestly, we thank them for their service π«Ά
π₯ KEYWORDS π₯
spintime, spinint, spinner, entryfield, entry, widget
Heads up bestie: this page is theTk-flavored one, so it's filed asiwidgets::spintime(1)and that's the version you're holding right now π Go build a clock, you're gonna slay β¨π
π¦ 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