ttk::sizegrip(3tk)
β¨ ttk::sizegrip β the little grippy corner bestie β¨
okay so like, welcome to the ttk::sizegrip manual page (that's the 3tk one, section 3, Tk-flavored, iykyk π
). This is a Tk Themed Widget, and she's here to let your users yank their window bigger from the corner. Iconic behaviour, truly.
πΈ NAME πΈ
ttk::sizegrip β the bottom-right corner resize widget, aka the grow box π
β¨ SYNOPSIS β¨
ttk::sizegrip pathName ?options?
π DESCRIPTION π
A ttk::sizegrip widget (everyone also calls her a grow box, no cap) lets the user resize the toplevel window she lives inside by pressing and dragging on the grip. That's it. That's her whole job. And she ate. π₯
π«Ά STANDARD OPTIONS π«Ά
-class-cursor-style-takefocus
Go read the ttk_widget manual entry for the full deets on these standard options, bestie β they're not re-explained here.
π WIDGET COMMAND π
Sizegrip widgets support the standard commands cget, configure, identify element, instate, state and style β see ttk::widget for all of those. Periodt. π
π PLATFORM-SPECIFIC NOTES π
On macOS, toplevel windows automatically come with a built-in size grip by default. So adding a ttk::sizegrip there is harmless β the built-in grip will just mask your widget. She's still there, just, like, behind the curtain. π
π¦ EXAMPLES π¦
Using pack:
pack [ttk::frame $top.statusbar] -side bottom -fill x
pack [ttk::sizegrip $top.statusbar.grip] -side right -anchor se
Using grid:
grid [ttk::sizegrip $top.statusbar.grip] \
-row $lastRow -column $lastColumn -sticky se
# ... optional: add vertical scrollbar in $lastColumn,
# ... optional: add horizontal scrollbar in $lastRow
π BUGS π
If the containing toplevel's position was specified relative to the right or bottom of the screen (likewm geometry ... wxh-x-yinstead ofwm geometry ... wxh+x+y), the sizegrip widget will not resize the window. She simply cannot. She refuses. π
Also: ttk::sizegrip widgets only support "southeast" resizing. That's the vibe. That's the only vibe.
π STYLING OPTIONS π
The class name for a ttk::sizegrip is TSizegrip.
TSizegrip styling options you can configure with ttk::style are:
-backgroundcolor
Some options are only available for specific themes, so don't come for her if one's missing.
See the ttk::style manual page for info on how to configure ttk styles. π
π SEE ALSO π
ttk::widget(3tk)
π₯ KEYWORDS π₯
widget, sizegrip, grow box
k bye ily, this was Tk 8.5 of the ttk::sizegrip(3tk) page β go forth and resize, main character π«Άβ¨
π¦ where this page comes from
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 2006 Joe English
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms