RosettaCodeData/Task/GUI-Maximum-window-dimensions/Tcl/gui-maximum-window-dimensions-1.tcl

12 lines
299 B
Tcl
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
package require Tk
proc maxSize {} {
# Need a dummy window; max window can be changed by scripts
set top .__defaultMaxSize__
if {![winfo exists $top]} {
toplevel $top
wm withdraw $top
}
# Default max size of window is value we want
return [wm maxsize $top]
}