Tkinter vs. wxPython (was: Which GUI?)

Rob W. W. Hooft rob at hooft.net
Fri Mar 3 03:02:01 EST 2000


>>>>> "FL" == Fredrik Lundh <effbot at telia.com> writes:

 FL> Rob W. W. Hooft <rob at hooft.net> wrote:
 >> For fun with buggy user code in Tkinter, try:
 >> 
 >> import Tkinter
 >> b=Tkinter.Button()
 >> b.pack()
 >> l=Tkinter.Label()
 >> l.grid()

 FL> not to mention this highly annoying
 FL> Python bug:

 FL> while 1:
 FL>   pass

I've been bothered by that one as well :-), but at least a Control-C will
get you out with a nice stack trace to help you locate the problem. The
buggy user code I cited is a bit more involved:

 - It hangs, but Control-C won't kill it, so you can't get a stackdump....
 - b and l might be instantiated by completely different objects in
   different modules in the program, and just happen to have the same
   parent window.

These two features together make this very hard to debug.

Rob
-- 
=====   rob at hooft.net          http://www.xs4all.nl/~hooft/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========



More information about the Python-list mailing list