widget_toolbar(n)

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

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