[Tutor] Tk+Ipython unexpected behavior

W W srilyk at gmail.com
Mon Jan 26 21:43:40 CET 2009


Hi all,
    I'm going through "An Introduction to Tkinter" by Fredrik Lundh and came
across (what seems to be) some slightly unexpected behavior. I'm editing the
python file with my favorite text editor, and using the %run magic function
in Ipython to test my program(s). On the second example(pg 4 of the PDF),
the frame.quit method is bound to a quit button. When I double click the .py
file to run it, it closes when the quit button is pressed. But with Ipython,
when the quit button is pressed, it unblocks the Ipython input but doesn't
actually quit the window. A call to root.quit() will not close the window,
only a call to root.destroy().

I'm not terribly worried about it, but I'm curious if it should be
considered a bug or simply "unexpected behavior".

-Wayne
-- 
To be considered stupid and to be told so is more painful than being called
gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness,
every vice, has found its defenders, its rhetoric, its ennoblement and
exaltation, but stupidity hasn't. - Primo Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090126/50f4b1d6/attachment.htm>


More information about the Tutor mailing list