Name

resizable

Synopsis

                        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

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.