Tkinter aspect question

Bruce Wolk bawolk at pacbell.net
Thu Apr 20 16:00:32 CEST 2000


I tried to post this earlier but it never appeared.  Apologies if both
show up.

How can I keep the aspect ratio of a window fixed?  I want my window to
stay square, no matter what its size is.  The aspect method seemed
promising, but when I tried

win = Toplevel(master)
win.geometry('400x400+100+100')
win.aspect(1,1,1,1)

it didn't have any effect.  The aspect could still be changed. Thanks.

Bruce



More information about the Python-list mailing list