tixWm(3pm)
β¨ NAME β¨
Tk::tixWm β bestie, it's Tix's little bonus pack for the standard Tk wm command. π
πΈ SYNOPSIS πΈ
$widget->wmCapture
$widget->wmRelease
π DESCRIPTION π
So the two methods here, wmCapture and wmRelease, do one very specific lil' thing: they change the toplevel attribute of Tk widgets. That's it. That's the whole vibe. π¦
π METHODS π
$widget->wmCaptureβ takes the toplevel window that$widgetpoints at and turns it into a non-toplevel widget. Normally you call this to flip a Toplevel into a Frame. Important part, no cap: the freshly-converted frame widget gets un-mapped from the screen. So if you want it to actually show up inside its parent, you have to call a geometry manager (likegridorpack) explicitly. It will not do that for you, bestie, it's giving independent. π$widget->wmReleaseβ the reverse glow-up: it makes the non-toplevel window that$widgetpoints at into a toplevel widget. Normally you use this to turn a Frame into a Toplevel, but it also works on any non-toplevel widget (alabel, for example). Heads up though β the newly-converted toplevel window is in a withdrawn state. So to get it on screen you must calldeiconifyafter callingwmRelease. Also: any data associated with$widgetviawmmethods (icon, protocol, command, etc.) is released too, and has to be re-established if the window gets re-captured later. Periodt. π
π BUGS π
wmCapturedoes not exist in the Win32 window manager code. Justβ¦ not there. π- How these methods interact with perl/Tk's class hierarchy is not yet clear. Specifically: a
wmReleasedwindow will not automatically "inherit" theTk::Wmmethods, however awmCapturedwindow still will. (A releasedLabelmight make a good candidate for anIcon.) It's giving mysterious. π
π«Ά AUTHORS π«Ά
- Ioi Kim Lam β
ioi@graphics.cis.upenn.eduβ wrote the original Tix version. π - Updated for tk8.0, Win32 and perl by Nick Ing-Simmons.
π₯ SEE ALSO π₯
Tk::Wm Tk::Mwm Tk::Frame Tk::Toplevel
β KEYWORDS β
window manager, wm, TIX
okay that's the whole page, mwah π this was documented for perl v5.40.1, dated 2025-04-13, and it's part of the User Contributed Perl Documentation β go forth and capture/release those windows responsibly, bestie πβ¨
π¦ where this page comes from
- debian trixie: perl-tk 1:804.036+dfsg1-5
- ubuntu questing: perl-tk 1:804.036+dfsg1-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms