[Tutor] Tk+Ipython unexpected behavior
srilyk at gmail.com
Mon Jan 26 21:43:40 CET 2009
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".
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...
More information about the Tutor