Tkinter aspect question

Bruce Wolk bawolk at pacbell.net
Thu Apr 20 00:19:39 EDT 2000


I am trying to create a square window that will remain square when its
size is adjusted.  I found the aspect method, which looked promising,
and tried the following:

from Tkinter import *
master=Tk()
win = Toplevel(master)
win.geometry('400x400+100+100')
win.aspect(1.0,1.0,1.0,1.0)

This does not work, i.e., the window does not maintain its aspect.  Can
anyone help me out?  Thanks.

Bruce



More information about the Python-list mailing list