geometry problem with Tkinter
Russell E. Owen
owen at nospam.invalid
Thu Nov 14 17:46:48 EST 2002
In article <mailman.1037236609.16889.python-list at python.org>,
Chad Netzer <cnetzer at mail.arc.nasa.gov> wrote:
>On Wednesday 13 November 2002 16:11, Russell E. Owen wrote:
>> I've run into a problem displaying a fairly simple geometry;
>> it displays, but goes into an infinite loop trying to grid everything
>> [snip]
>> Here's a very simplified bit of code that demonstrates the problem
>
>Works fine for me on Debian linux running python 2.2 and Tk 8.3.
>
>What is your setup?
My setup is MacOS X 10.2, Python 2.2.2, aqua Tcl/Tk 8.4.1.
The program I posted definitely shows the bug on my setup.
Thank you very much, all of you who tried it on your own. From your
results it sounds as if my code is OK, and that it is probably a bug in
aqua Tk. In this case I was really hoping I'd simply overlooked some
subtlety of the grid manager.
I'll rewrite the code in Tk (I'm getting better at that :)) and if I can
reproduce it I'll submit a bug report.
A few side notes, for the curiosity of those who posted:
- The problem is not a full lockup. The scrollbar shimmies, the CPU
gets really busy and it continues until one resizes the window (or one
can avoid the problem by specifying an initial size for the window,
which is the workaround I'm presently using).
- However, Tkinter does halt while this is going on -- if one tries to
put additional windows after the one I'm having problems with, the
Python script never gets there.
- I can make the problem worse (a tighter loop that is much harder to
break out of) by not gridding the text widget.
Regards,
-- Russell
More information about the Python-list
mailing list