Utils(n)

πŸ“¦ version 8.4.3, in opensuse-leap 16.0

πŸ¦‹ Utils(n) β€” Tix Built-In Commands: tixUtils πŸ¦‹

okay so bestie, welcome to the Utils(n) page for Tix. The manual name is Tix Built-In Commands, and the main character is tixUtils. Let's get into it. πŸ’…

✨ NAME ✨

tixUtils β€” Utility commands in Tix.

🌸 SYNOPSIS 🌸

tixDescendants pathName
tixDisableAll pathName
tixEnableAll pathName
tixPushGrab ?-global? window
tixPopGrab

πŸŽ€ DESCRIPTION πŸŽ€

Here's the whole roster, no skips:

  • tixDescendants pathName β€” returns a list of all the descendant widgets of pathName plus pathName itself. Yes, it includes the parent too, periodt.
  • tixDisableAll pathName β€” disables pathName and all its descendants.
  • tixEnableAll pathName β€” enables pathName and all its descendants.
  • tixPushGrab ?-global? window β€” the tixPushGrab and tixPopGrab commands let you perform "cascade-grabbing". tixPushGrab calls the grab(n) command on window and saves window on a grabbing stack.
  • tixPopGrab β€” pops the top-most element from the grabbing stack and releases its grab. If the grabbing stack is not empty, then tixPopGrab will execute grab(n) on the current top-most element in the grabbing stack.

πŸ’€ NOTES πŸ’€

Okay, important caveat time. Some Tix widgets β€” for example, tixComboBox and tixPanedWindow β€” grab the screen on certain occasions using tixPushGrab and tixPopGrab. So if you need to grab the screen when these widgets are present, you should also call tixPushGrab and tixPopGrab in place of the Tk grab and grab release commands. Otherwise, the behavior of these widgets may be undefined.

🚨 Undefined behavior is not a vibe. Use the Tix push/pop grab commands when those widgets are around, fr fr.

πŸ”‘ KEYWORDS πŸ”‘

Tix(n), grab(n).


πŸ’– cute little sign-off from the footer: Tix 4.0 Β· Utils(n) πŸ’–

πŸ“¦ where this page comes from