Hello,<br>
<br>
I work with python 2.5.2 and i use Tkinter for a gui app development.
Platform with which i work is:- Linux version 2.6.9-67.ELsmp
(<a href="mailto:brewbuilder@hs20-bc1-5.build.redhat.com">brewbuilder@hs20-bc1-5.build.redhat.com</a>) (gcc version 3.4.6 20060404
(Red Hat 3.4.6-8))<strong></strong><br>
<br>
#!/usr/local/bin/python<br>
#----------------------<br>
<span style="font-style: italic;">from Tkinter import *</span><br style="font-style: italic;">
<span style="font-style: italic;">import pdb</span><br style="font-style: italic;">
<span style="font-style: italic;">import os</span><br style="font-style: italic;">
<span style="font-style: italic;">import string</span><br style="font-style: italic;">
<span style="font-style: italic;">import threading</span><br style="font-style: italic;">
<span style="font-style: italic;">from tkFileDialog import *</span><br style="font-style: italic;">
<span style="font-style: italic;">from tkMessageBox import *</span><br style="font-style: italic;">
<span style="font-style: italic;">import sys</span><br style="font-style: italic;">
<br style="font-style: italic;">
<span style="font-style: italic;">main_w = Tk()</span><br style="font-style: italic;">
<span style="font-style: italic;">main_w.resizable(width = False, height = False)<br>
</span><span style="font-style: italic;"><span style="font-style: italic;">#</span>main_w.maxsize(width= 1000, height = 3000)</span><br style="font-style: italic;">
<span style="font-style: italic;">print main_w.resizable()</span><br style="font-style: italic;">
<span style="font-style: italic;">main_w.mainloop()</span><br>
<br>
In the above code the command main_w.resizable.... does not work. That
means, the user can drag the window to a larger size but cannot make
the same smaller.<br>
<br>
On printing:<br>
-------------<br>
<span style="font-style: italic;">print main_w.resizable()</span><br>
<br>
i do get 0,0 as output!<br>
<br>
BUT,  the resizable attribute works  if i add the following line<br>
<span style="font-style: italic;">main_w.maxsize(width= 1000, height = 3000)</span><br>
where the values are random but should not be set to width = 0, height
=0, in which case it (widget.resizable(width = False, height = False))
does not function.<br>
<br>
<br>
So is this a bug, or am i doing something wrong here ? :O<br>
<br>
Regards<br>
Thanks<br>
arms<br>