widget_toolbar(n)
widget_toolbar(n) β Various megawidgets
okay bestie, welcome to the toolbar page π
this is the manual for widget_toolbar, and the manual name up top is "Various megawidgets" β we're folding that in here so the top line isn't just a repeat, iykyk. β¨
π NAME π
widget_toolbar β Toolbar Megawidget π οΈ
πΈ SYNOPSIS πΈ
Here's the exact summoning ritual, no cap:
package require Tcl 8.4
package require Tk 8.4
package require widget ?3.0?
package require widget::toolbar ?1.0?
widget::toolbar pathname ?options?
getframe
add ?item? ?args?
delete item1 ?item2? ?...?
itemcget symbol option
itemconfigure symbol ?args?
items ?pattern?
remove ?-destroy? item1 ?item2? ?...?
π¦ DESCRIPTION π¦
okay so this package gives you a toolbar megawidget β a snidget, yes that's literally the word in the page π β and it uses the Tile/Ttk themed widget set. very themed, very cute. π
The main call is:
widget::toolbar pathname ?options?
And the methods/commands listed are these, exactly:
getframe
add ?item? ?args?
delete item1 ?item2? ?...?
itemcget symbol option
itemconfigure symbol ?args?
items ?pattern?
remove ?-destroy? item1 ?item2? ?...?
That's the whole command crew, bestie β getframe, add, delete, itemcget, itemconfigure, items, and remove. π
π WIDGET OPTIONS π
The page lists these widget options by name and does not give extra descriptions, defaults, or values here β so I'm not gonna invent any, periodt. π
-ipadβ a widget option. that's the name, that's the listing. β¨-padβ a widget option. name only in the source. π-separatorβ a widget option. also name only. π
β ITEM OPTIONS β
Same vibe: these are the item options, listed by name. No secret extra details on this page, so no made-up behavior from me. π«Ά
-padβ an item option. π-separatorβ an item option. π¦-stickyβ an item option. πΈ-weightβ an item option. π
π EXAMPLE π
Here's the example, copied exactly because code does not get a vibe rewrite:
package require widget::toolbar ; # or widget::all
set t [widget::toolbar .t]
pack $t -fill x -expand 1
$t add button [button .b -text foo]
$t add separator -pad {2 4}
$t add button [button .c -text bar]
slay. that's the whole demo. π₯
π BUGS, IDEAS, FEEDBACK π
Not me being dramatic β the page literally says this document, and the package it describes, will undoubtedly contain bugs and other problems. π so bestie, report those bugs in the category widget::toolbar of the Tklib Trackers (http://core.tcl.tk/tklib/reportlist). π
Please also report any ideas for enhancements you may have for either package and/or documentation. we love a feedback moment. π«Ά
π KEYWORDS π
megawidget, snit, toolbar, widget β¨
π CATEGORY π
Widget π
Source/version sign-off, because the footer deserves a cute mention: this is from tklib 3.0, page widget_toolbar(n). bye bestie, go build a toolbar ππ¦β¨
π¦ where this page comes from
- alpine 3.24: tk-lib-doc 0.7-r0 Β· TCL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms