wm minsize
Gives or sets the smallest size of a toplevel.
wm minsize WINDOW ?WIDTH HEIGHT?
Description
The user cannot make the window smaller than WIDTH and HEIGHT pixels. With no size, gives the current minimum. The default is 1 1.
Returns
A list of two integers, or an empty string.
Examples
% toplevel .t
> wm minsize .t 50 40
> wm minsize .t
50 40
Errors
% wm minsize .t 1
wrong # args: should be "wm minsize window ?width height?"
-errorcode NONE
% wm minsize .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