Teek API Documentation

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
  • window String, Widget — (default: the root window)

Returns void

geometry(window: '.')

Parameters
  • window String, Widget — (default: the root window)

Returns String — geometry string (e.g. "400x30000")

initialize(app)

Returns Wm — a new instance of Wm

@api private

resizable(window: '.')

Parameters
  • window String, Widget — (default: the root window)

Returns Array(Boolean, Boolean) — [width_resizable, height_resizable]

set_geometry(value, window: '.')

Parameters
  • value String — new geometry (e.g. "400x300", "400x30010050")
  • window String, Widget — (default: the root window)

Returns String — the geometry

set_resizable(width, height, window: '.')

Parameters
  • width Boolean — allow horizontal resize
  • height Boolean — allow vertical resize
  • window String, Widget — (default: the root window)

Returns void

set_title(value, window: '.')

Parameters
  • value String — new title
  • window String, Widget — (default: the root window)

Returns String — the title

title(window: '.')

Parameters
  • window String, Widget — (default: the root window)

Returns String — the window's current title

withdraw(window: '.')

Hide a window without destroying it.

Parameters
  • window String, Widget — (default: the root window)

Returns void