tkInter constraining the width only
akineko
akineko at gmail.com
Mon Dec 29 15:23:15 EST 2008
Hello everyone,
I'm writing a Tkinter program and trying to constraint the window
size.
I want to set the minimum of the width and the height and the maximum
of the width, but not the height.
I can use minsize(width=min_width, height=min_height) from Wm method
to limit the minimum sizes.
Similarly I thought I could use maxsize(width=max_width, height=None)
to limit the maximum sizes.
Unfortunately, it didn't work.
maxsize() complained if only width is given.
Is there any easy way to constraint a Tkinter window so that the sizes
are set except it can grow vertically.
Any suggestions are greatly appreciated.
Best regards,
Aki Niimura
More information about the Python-list
mailing list