beetlebug▾
/

wm maxsize

Gives or sets the largest size of a toplevel.

wm maxsize WINDOW ?WIDTH HEIGHT?

Description

The user cannot make the window larger than WIDTH and HEIGHT pixels. With no size, gives the current maximum. ztk has the default 10000 10000.

Returns

A list of two integers, or an empty string.

Examples

% toplevel .t
> wm maxsize .t 300 200
> wm maxsize .t
300 200

Errors

% wm maxsize .t 1
wrong # args: should be "wm maxsize window ?width height?"
-errorcode NONE

% wm maxsize .t x 1
expected integer but got "x"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1