iwidgets::timeentry(1)
π iwidgets::timeentry π
okay bestie, welcome to the manual page for iwidgets::timeentry(1) from the [incr Widgets] fam β this is the glow-up you didn't know you needed π
β¨ NAME β¨
iwidgets::timeentry β create and manipulate a timeentry widget ππ
β¨ SYNOPSIS β¨
iwidgets::timeentry pathName ?options?
β¨ INHERITANCE β¨
the family tree goes like this, no cap π§¬:
itk::Widget <- iwidgets::LabeledWidget <- iwidgets::Timefield <- iwidgets::Timeentry
β¨ STANDARD OPTIONS β¨
these are the classics everyone gets, periodt:
backgroundborderWidthcursorexportSelectionforegroundhighlightColorhighlightThicknessinsertBackgroundjustifyrelief
if you want the full tea on these, go read the options manual entry β it has all the details π
β¨ INHERITED OPTIONS β¨
π from labeledwidget
disabledForegroundlabelBitmaplabelFontlabelImagelabelMarginlabelPoslabelTextlabelVariablestatesticky
see the labeledwidget class manual entry for the deets on all of these π«Ά
πΈ from timefield
commandformatsecondstextBackgroundtextFont
see the timefield class manual entry for details on these inherited options π
β¨ ASSOCIATED OPTIONS β¨
these ones come courtesy of the watch, and they're lowkey iconic:
hourRadiushourColorminuteRadiusminuteColorpivotRadiuspivotColorsecondRadiussecondColorclockColorclockStippletickColorwatchHeightwatchWidth
see the watch manual entry for the details on all these associated options β
β¨ WIDGET-SPECIFIC OPTIONS β¨
π
closeText
- Name:
closeText - Class:
Text - Command-Line Switch:
-closetext
sets the text that shows up on the close button of the watch popup. the default is Close. so simple, so chic β¨
π
grab
- Name:
grab - Class:
Grab - Command-Line Switch:
-grab
picks the grab level β local or global β that gets grabbed before the popup watch even shows up. the default is global. wanna know more about grab levels? go consult the documentation for Tk's grab command, bestie π«Ά
π
icon
- Name:
icon - Class:
Icon - Command-Line Switch:
-icon
the watch icon image used inside the timeentry. this image must have already been created with the image create command β no shortcuts. and if you don't hand one over? it'll generate one for you: a pixmap if possible, bitmap otherwise. main character energy, honestly π
π
state
- Name:
state - Class:
State - Command-Line Switch:
-state
sets the state of the widget, which can be disabled or normal. a disabled state blocks you from selecting the timefield or the time icon button. it's giving "do not perceive me" π
β¨ DESCRIPTION β¨
the iwidgets::timeentry command creates a time entry field with a popup watch by combining the timefield and watch widgets together. this means the user can enter the time with the keyboard, or with the mouse by selecting the watch icon, which brings up a popup watch. two ways in, one gorgeous widget π
β¨ METHODS β¨
the iwidgets::timeentry command creates a new Tcl command whose name is pathName. you use that command to invoke various operations on the widget. the general form is:
pathName option ?arg arg ...?
option and the args decide exactly what the command does. here's what's possible for timeentry widgets π
β¨ INHERITED METHODS β¨
getisvalidshow
see the timefield manual entry for the details on these 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 the iwidgets::timeentry command. slay.
π¦ pathName configure ?option? ?value option value ...?
query or modify the configuration options of the widget.
- if no
optionis specified, it returns a list describing all of the available options forpathName(seeTk_ConfigureInfofor the info on the format of this list). - if
optionis specified with novalue, the command returns a list describing that one named option (this list will be identical to the corresponding sublist of the value returned when no option is specified). - if one or more
option-valuepairs are specified, the command modifies the given widget option(s) to have the given value(s) β and in that case the command returns an empty string.
option may have any of the values accepted by the iwidgets::timeentry command. okay that was a lot but you got this π«Ά
β¨ COMPONENTS β¨
π§ label
- Name:
label - Class:
Label
the label component provides a label component used to identify the time. see the label widget manual entry for the details on the label component item π
π§ iconbutton
- Name:
iconbutton - Class:
Label
the iconbutton component provides a labelbutton component that acts as a lightweight button displaying the watch icon. the second you press the labelbutton, the watch appears. see the label widget manual entry for the details on the labelbutton component item β¨
π§ time
- Name:
time - Class:
Entry
the time component provides the entry field for time input and display. see the entry widget manual entry for the details on the time component item β
β¨ EXAMPLE β¨
here's the whole vibe in four lines, fr fr:
package require Iwidgets 4.0
iwidgets::timeentry .te
pack .te
β¨ AUTHOR β¨
Mark L. Ulferts π
β¨ KEYWORDS β¨
timeentry, widget
and that's the whole page, bestie!! π this one ships under the Tk banner as iwidgets::timeentry(1) β go forth and pop up some watches, you absolute icon πβ¨π¦
π¦ 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) 1997 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms