March 2003
Intermediate to advanced
656 pages
39h 30m
English
resizable
T.resizable([width,height])
T
.resizable( ), without
arguments, returns a pair of integers (each 0 or
1) whose two items indicate if user action via the
window manager can change
T’s width and height,
respectively.
T
.resizable(
W,H
),
with two integer arguments W and
H (each 0 or
1), sets the user’s ability to
change T’s width and
height according to the truth values of W
and H. With some releases of
Tk, resizable, when called
without arguments, returns a string such as '1
1' rather than a pair of integers such as
(1,1). To remove this uncertainty, use:
resizable_wh=T.resizable( ) if len(resizable_wh) != 2:resizable_wh= map(int,resizable_wh.split( ))resizable_w,resizable_h=resizable_wh