widget(n)

πŸ“¦
version 0.7 Β· 3 versions
, in alpine 3.24

πŸ’… widget(n) β€” the megawidget bundle, bestie edition ✨

okay so real talk, this is the widget(n) page from the Tcl world, and it's basically a whole bundle of megawidgets waiting to be your new besties. the manual name up top is literally just widget(n) β€” that's the whole header, no notes. πŸŽ€


🌸 NAME 🌸

widget β€” Megawidget bundle. that's it, that's the name, and honestly? iconic. πŸ’–


✨ SYNOPSIS ✨

here's the exact spellbook, copy it verbatim bestie:

package require Tcl  8.4

package require Tk  8.4

package require widget  ?3.0?

package require snit

widget::validate as ?options?

widget::calendar pathname ?options?

widget::dateentry pathname ?options?

widget::dialog pathname ?options?

widget::menuentry pathname ?options?

widget::panelframe pathname ?options?

widget::ruler pathname ?options?

widget::screenruler pathname ?options?

widget::scrolledwindow pathname ?options?

widget::statusbar pathname ?options?

widget::superframe pathname ?options?

widget::toolbar pathname ?options?

so yeah β€” you need Tcl 8.4, you need Tk 8.4, you need widget (and the ?3.0? is just hanging out there being optional-looking), and you need snit because everything below is built on it. then it's widget command city. πŸ™οΈ


πŸ¦‹ DESCRIPTION πŸ¦‹

This package provides megawidgets built on the snit oo system β€” the docs call them snidgets, which is genuinely such a cute portmanteau ngl β€” and it makes use of the Tile/Ttk themed widget set. so like, snit + Ttk = the whole vibe of this package. slay. πŸ’…

πŸ’œ widget::validate as ?options?

the docs list this one under a heading of commands:… and then there are no commands listed. like, zero. it's giving "left as an exercise for the reader", bestie. 😭 but that's genuinely all the page says, so I'm not gonna invent commands for you β€” no cap, I refuse. 🫢


πŸ‘‘ WIDGETS πŸ‘‘

every one of these takes a pathname and ?options?. and I need you to brace yourself: every single entry below has the same deal β€” the page says options: and then… nothing. empty. an aesthetic little void. so here they all are, exactly as listed, with their very real and very absent option lists: 🌈

  • widget::calendar pathname ?options? β€” the calendar one. the page says options: and lists none.
  • widget::dateentry pathname ?options? β€” the date entry one. again: options: β€” none listed.
  • widget::dialog pathname ?options? β€” the dialog one. options: β€” none listed.
  • widget::menuentry pathname ?options? β€” the menu entry one. options: β€” none listed.
  • widget::panelframe pathname ?options? β€” the panel frame one. options: β€” none listed.
  • widget::ruler pathname ?options? β€” the ruler one. options: β€” none listed.
  • widget::screenruler pathname ?options? β€” the screen ruler one. options: β€” none listed.
  • widget::scrolledwindow pathname ?options? β€” the scrolled window one. options: β€” none listed.
  • widget::statusbar pathname ?options? β€” the status bar one. options: β€” none listed.
  • widget::superframe pathname ?options? β€” the superframe one. options: β€” none listed.
  • widget::toolbar pathname ?options? β€” the toolbar one. options: β€” none listed.

eleven widgets, eleven options: labels, zero options documented on this page. the mystery is the moment. πŸ•΅οΈβ€β™€οΈβœ¨


⭐ EXAMPLE ⭐

this is the one place the page actually feeds you code, and it ate, fr fr:

package require widget::superframe ; # or widget::all
pack [widget::superframe .f -type separator -text "SuperFrame:"]

see? superframe, -type separator, -text "SuperFrame:", packed into .f. and the comment is telling you widget::all is the alternative if you want the whole buffet instead of one dish. πŸ“


πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

okay so this document β€” and the package it describes β€” will undoubtedly contain bugs and other problems. the manpage is out here being humble and honest and I respect it deeply. πŸ™ˆ

please report such bugs in the category widget of the Tklib Trackers, at http://core.tcl.tk/tklib/reportlist.

and please also report any ideas for enhancements you may have β€” for either the package and/or the documentation. they want your ideas, bestie, they literally asked. πŸ«ΆπŸ’–


πŸ”₯ KEYWORDS πŸ”₯

bundle, calendar, dateentry, dialog, megawidget, menu, panelframe, ruler, screenruler, scrolledwindow, snit, statusbar, superframe, toolbar, widget

(read those out loud, it's a little poem, iykyk 🌸)


🧚 CATEGORY 🧚

Widget


and that's the whole page!! mwah πŸ’‹ a cute little sign-off: this one comes from tklib, version 3.0, and the footer's third slot is just widget(n) again β€” no date to be found, which is lowkey a serve in its own way. main character energy from a manpage with no dates. πŸ‘‘βœ¨ go build something gorgeous with your snidgets, ily, bye!! πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from