Strange terminal behavior after quitting Tkinter application
Michael Bentley
michael at jedimindworks.com
Wed Apr 18 04:34:48 EDT 2007
On Apr 18, 2007, at 2:33 AM, Chris wrote:
>
> I'm puzzled by some strange behavior when my Python/Tkinter
> application quits (on linux): the terminal from which I started Python
> is messed up.
>
> If start up python, then import the code below, then start the program
> with Application(), then click the Quit button, my terminal never
> prints anything again (such as commands I type).
>
> <code>
>
> import Tkinter
> import sys
>
> class Application(Tkinter.Tk):
>
> def __init__(self,**config):
> Tkinter.Tk.__init__(self,**config)
>
> Tkinter.Button(self,text="Quit",command=self.quit_application).pack()
>
> def quit_application(self):
> sys.exit()
>
> </code>
>
>
> Can anyone tell me what I'm doing wrong?
What happens if you type 'stty sane' (and of course, a carriage
return) afterwards?
More information about the Python-list
mailing list