Teek::Wm Class
Thin, typed wrapper around Tk’s wm (window manager) command family -
one method per subcommand, coerced to the right Ruby type, reached via
App#wm. Kept for callers already using app.wm.title(window: ...) -
every method here is a one-line delegate to Window, which is where
the actual wm/grab work now lives (see Window’s own doc comment
for why - the same window-scoped operations kept growing as more and
more window:-kwarg methods flattened onto App).
Inherits: Object
Instance Methods ↑
deiconify(window: '.')
Show a window (map it if withdrawn/iconified).
Parameters
windowString, Widget— (default: the root window)
Returns void
geometry(window: '.')
Parameters
windowString, Widget— (default: the root window)
Returns String — geometry string (e.g. "400x30000")
resizable(window: '.')
Parameters
windowString, Widget— (default: the root window)
Returns Array(Boolean, Boolean) — [width_resizable, height_resizable]
set_geometry(value, window: '.')
Parameters
valueString— new geometry (e.g."400x300","400x30010050")windowString, Widget— (default: the root window)
Returns String — the geometry
set_resizable(width, height, window: '.')
Parameters
widthBoolean— allow horizontal resizeheightBoolean— allow vertical resizewindowString, Widget— (default: the root window)
Returns void
set_title(value, window: '.')
Parameters
valueString— new titlewindowString, Widget— (default: the root window)
Returns String — the title
title(window: '.')
Parameters
windowString, Widget— (default: the root window)
Returns String — the window's current title
withdraw(window: '.')
Hide a window without destroying it.
Parameters
windowString, Widget— (default: the root window)
Returns void