iwidgets::spindate(1)
π NAME π
iwidgets::spindate β create and manipulate time spinner widgets. Yep bestie, this is your date-picker-in-a-widget moment, and it lives in the [incr Widgets] family, filed under iwidgets::spindate(1). ποΈβ¨
π¦ SYNOPSIS π¦
iwidgets::spindate pathName ?options?
πΈ INHERITANCE πΈ
The family tree, and it's giving legacy:
itk::Widget <- iwidgets::Spindate
β¨ STANDARD OPTIONS β¨
backgroundcursorforegroundrelief
See the "options" manual entry for details on the standard options. No notes, they're the classics. π
π ASSOCIATED OPTIONS π
These cuties come in from other widgets, so you already know them:
textBackground,textFontβ see the"entryfield"manual entry for the deets on these associated options.labelFont,labelMarginβ see the"labeledwidget"manual entry for the deets on these associated options.arrowOrient,repeatDelay,repeatIntervalβ see the"spinner"manual entry for the deets on these associated options.
π WIDGET-SPECIFIC OPTIONS π
This is the main character section, fr fr. Every one of these is yours to set:
dateMarginβ Name:dateMargin, Class:Margin, Command-Line Switch:-datemarginSpecifies the margin space between the month, day, and year spinners, in any of the formsaccpetabletoTcl_GetPixels. The default is 1 pixel. (Yes, we saidaccpetable. The docs said it first, we're just the messenger. π)dayLabelβ Name:dayLabel, Class:Text, Command-Line Switch:-daylabelSpecifies the text of the label for the day spinner. The default is"Day".dayOnβ Name:dayOn, Class:dayOn, Command-Line Switch:-dayonSpecifies whether or not to display the day spinner, in any of the forms acceptable toTcl_GetBoolean. The default istrue.dayWidthβ Name:dayWidth, Class:Width, Command-Line Switch:-daywidthSpecifies the width of the day spinner, in any of the forms acceptable toTcl_GetPixels. The default is 3 pixels.labelPosβ Name:labelPos, Class:Position, Command-Line Switch:-labelposSpecifies the position of the label along the sides of the various spinners:n,e,s, orw. The default isw.monthFormatβ Name:monthFormat, Class:MonthFormat, Command-Line Switch:-monthformatSpecifies the format of month display:integer(1-12), or brief strings (Jan - Dec), or full strings (January - December).monthLabelβ Name:monthLabel, Class:Text, Command-Line Switch:-monthlabelSpecifies the text of the label for the month spinner. The default is"Month".monthOnβ Name:monthOn, Class:monthOn, Command-Line Switch:-monthonSpecifies whether or not to display the month spinner, in any of the forms acceptable toTcl_GetBoolean. The default istrue.monthWidthβ Name:monthWidth, Class:Width, Command-Line Switch:-monthwidthSpecifies the width of the month spinner, in any of the forms acceptable toTcl_GetPixels. The default is 3 pixels.orientβ Name:orient, Class:Orient, Command-Line Switch:-orientSpecifies the orientation of the month, day, and year spinners:verticalorhorizontal. The default ishorizontal.yearDigitsβ Name:yearDigits, Class:YearDigits, Command-Line Switch:-yeardigitsSpecifies the number of digits to be displayed as the value for the year spinner. The valid values are2and4. The default is2.yearLabelβ Name:yearLabel, Class:Text, Command-Line Switch:-yearlabelSpecifies the text of the label for the year spinner. The default is"Year".yearOnβ Name:yearOn, Class:yearOn, Command-Line Switch:-yearonSpecifies whether or not to display the year spinner, in any of the forms acceptable toTcl_GetBoolean. The default istrue.yearWidthβ Name:yearWidth, Class:Width, Command-Line Switch:-yearwidthSpecifies the width of the year spinner, in any of the forms acceptable toTcl_GetPixels. The default is 3 pixels.
π DESCRIPTION π
The iwidgets::spindate command creates a set of spinners for use in date value entry. The set includes an month, day, and year spinner widget. Three spinners, one glow-up. Obsessed. π«Ά
π₯ METHODS π₯
The iwidgets::spindate 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 spindate widgets:
π 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::spindatecommand.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::spindatecommand.pathName get ?format?β Returns the current contents of the spindate widget in a format ofstringor as an integer clock value, using the-stringand-clicksformat options respectively. The default is bystring. Reference theclockcommand for more information on obtaining dates and their formats.pathName show dateβ Changes the currently displayed date to be that of the date argument. The date may be specified either as a string, an integer clock value or the keyword"now". Reference theclockcommand for more information on obtaining dates and their formats.
π¦ COMPONENTS π¦
The little guys that make the whole fit work:
monthβ Name:month, Class:SpinnerThe month spinner component is the month spinner of the date spinner. See theSpinnerwidget manual entry for details on the month component item.dayβ Name:day, Class:SpinintThe day spinner component is the day spinner of the date spinner. See theSpinIntwidget manual entry for details on the day component item.yearβ Name:year, Class:SpinintThe year spinner component is the year spinner of the date spinner. See theSpinIntwidget manual entry forfordetailson the year component item.
π EXAMPLE π
Here's the vibe, copy-paste ready:
package require Iwidgets 4.0 iwidgets::spindate .sd pack .sd -padx 10 -pady 10
π AUTHOR π
Sue Yockey, Mark L. Ulferts. Legends, honestly. π
β KEYWORDS β
spindate, spinint, spinner, entryfield, entry, widget
okay that's the whole page, no cap, every last flag and default accounted for π This one rides under Tk, bestie, and the manual name is iwidgets::spindate(1) β now go build something iconic with it. ππ¦β¨
π¦ 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