ttk::separator(3tk)

πŸ“¦
version 9.0.4 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ttk::separator β€” the little line that keeps things apart πŸ’–

okay bestie, so this one is ttk::separator(3tk), aka the Tk themed widget that is literally just a cute little divider line. that's it. that's the whole gig. and honestly? iconic for it. πŸŽ€


✨ NAME ✨

ttk::separator β€” Separator bar πŸ¦‹


✨ SYNOPSIS ✨

ttk::separator pathName ?options?

✨ DESCRIPTION ✨

so like. a ttk::separator widget displays a horizontal or vertical separator bar. that's the vibe. it separates. it bars. it's giving boundary-setting queen πŸ’…


✨ STANDARD OPTIONS ✨

these ones come with the territory, no cap:

  • -class
  • -cursor
  • -style
  • -takefocus

if you want the full tea on these, go read the ttk_widget manual entry, bestie, it's all there 🫢


✨ WIDGET-SPECIFIC OPTIONS ✨

okay so this is the one that's hers:

  • -orient β€” Command-Line Name: -orient; Database Name: orient; Database Class: Orient. One of horizontal or vertical. Specifies the orientation of the separator. that's it, pick a direction, slay πŸ’«

✨ WIDGET COMMAND ✨

separator widgets support the standard commands, fr fr:

  • cget
  • configure
  • identify element
  • instate
  • state
  • style

(see ttk::widget for the details, iykyk πŸ‘‘)


✨ STYLING OPTIONS ✨

the class name for a ttk::separator is TSeparator. remember that name, she's the main character.

TSeparator styling options configurable with ttk::style are:

  • -background color
⚠️ heads up bestie: some options are only available for specific themes. not every theme is gonna serve every option, and that's just how it is 😭

see the ttk::style manual page for info on how to configure ttk styles πŸ’œ


✨ SEE ALSO ✨

  • ttk::widget(3tk)

✨ KEYWORDS ✨

  • widget
  • separator

okay that's the whole page, you're officially a separator expert now, go draw a line somewhere 🧚✨

this has been your girl, signing off from Tk version 8.5 β€” page ttk::separator(3tk), and yes she ate and left no crumbs πŸ’…πŸŒΈ

πŸ“¦ where this page comes from