WIDGET(1p)
π WIDGET(1p) β the perl/Tk demo of all demos π
okay bestie, gather round, because this one is literally a whole museum of Perl/Tk widgets and you're getting the VIP tour π
β¨ NAME β¨
widget β a whole Demonstration of Perl/Tk widgets, no cap π¦
β¨ SYNOPSYS β¨
(yes, that's how the page spells it, iykyk π )
widget [ directory ]
β¨ DESCRIPTION β¨
okay so this script is the moment. it shows off the various widgets that Tk provides, plus a ton of the features of the Tk toolkit. it's giving showcase π«Ά
but heads up: this file only contains the code that generates the main window for the application, and that main window is what invokes the individual demonstrations. the code for the actual demonstrations lives in separate .pl files inside the widget_lib directory, and this script autoloads them as needed. slay, modular π
here's the tea on directories:
widgetlooks in the directory you give it on the command line, so it can load user contributed demonstrations from there.- if you don't specify a directory name when you invoke
widget, and the environment variableWIDTRIBis defined, then the demonstrations get loaded from theWIDTRIBdirectory. β¨ - if
WIDTRIBis undefined, thenwidgetdefaults to the released user contributed directory, which iswidtrib.
no directory, noWIDTRIB? don't stress, it just falls back towidtribπ
πΈ History πΈ
the lore. the receipts. the commit history of a legend π
#
# Stephen O. Lidie, LUCC, 96/03/11. lusol@Lehigh.EDU
# Stephen O. Lidie, LUCC, 97/01/01. lusol@Lehigh.EDU
# Stephen O. Lidie, LUCC, 97/02/11. lusol@Lehigh.EDU
# Stephen O. Lidie, LUCC, 97/06/07. lusol@Lehigh.EDU
# Update for Tk402.00x. Total revamp: WidgetDemo, Scrolled, released
# composites, -menuitems, qw//, etcetera. Perl 5.004 required.
# Stephen O. Lidie, LUCC, 98/03/10. lusol@Lehigh.EDU
# Update for Tk8.
# Stephen O. Lidie, LUCC, 98/06/26. Stephen.O.Lidie@Lehigh.EDU
# Add Common Dialogs for Tk800.007.
# Stephen.O.Lidie@Lehigh.EDU, 1999/11/29, Lehigh University.
# Demo some "dash patch" changes.
# Stephen.O.Lidie@Lehigh.EDU, 2000/01/11, Lehigh University.
# Update menubar to Tk 8, fix color palette Menubutton demo.
# Stephen.O.Lidie@Lehigh.EDU, 2000/07/06, Lehigh University.
# Remove inswt() from widget and styles.pl to show the proper Perl/Tk
# idiom for inserting Text tags. Various and sundry cleanups.
# sol0@lehigh.edu, 2003/07/29, Lehigh University Computing Center.
# Update for Tk 8.4.4.
β¨ AUTHOR β¨
Steve Lidie <sol0@Lehigh.EDU> β the main character, fr fr π
and that's the whole page bestie!! π this one's from Tk804.036, dated 2025-04-13, and it lives under WIDGET(1p) in the perl/Tk Documentation. go forth and demo every widget, periodt π β¨π¦
π¦ where this page comes from
- debian trixie: perl-tk 1:804.036+dfsg1-5
- ubuntu questing: perl-tk 1:804.036+dfsg1-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms