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:

  • background
  • borderWidth
  • cursor
  • exportSelection
  • foreground
  • highlightColor
  • highlightThickness
  • insertBackground
  • justify
  • relief

if you want the full tea on these, go read the options manual entry β€” it has all the details πŸ’œ


✨ INHERITED OPTIONS ✨

πŸŽ€ from labeledwidget

  • disabledForeground
  • labelBitmap
  • labelFont
  • labelImage
  • labelMargin
  • labelPos
  • labelText
  • labelVariable
  • state
  • sticky

see the labeledwidget class manual entry for the deets on all of these 🫢

🌸 from timefield

  • command
  • format
  • seconds
  • textBackground
  • textFont

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:

  • hourRadius
  • hourColor
  • minuteRadius
  • minuteColor
  • pivotRadius
  • pivotColor
  • secondRadius
  • secondColor
  • clockColor
  • clockStipple
  • tickColor
  • watchHeight
  • watchWidth

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 ✨

  • get
  • isvalid
  • show

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 option is specified, it returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for the info on the format of this list).
  • if option is specified with no value, 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-value pairs 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