Returning from Tk

Matthew Barre mbarre at mac.com
Mon Mar 27 22:14:03 CEST 2000


Strangely I have experienced what he's talking about. Even with
widget.quit() to break out of the mainloop it freezes Python's enviroment.
IE you have to kill the IDE or the interperter forcefully and restart it to
continue. The Tk widgets disappear but the macos window is still there
although beit blank and you cannot get rid of it or use anything else in the
Python IDE. I don't know if this is us newbies missing something or an
undocumented feature :) Ideas would be welcome. :)

-Matt
---------
"You will find that many of the truths we hold to depend greatly on a
certain point of view." -Obi Wan Kenobi

> From: Greg Ewing <greg at cosc.canterbury.ac.nz>
> Organization: Computer Science Dept, University of Canterbury
> Newsgroups: comp.lang.python
> Date: Mon, 27 Mar 2000 14:02:37 +1200
> Subject: Re: Returning from Tk
> 
> Michael Ackerman wrote:
>> 
>> I cannot find any way to return from a Tkinter program,
> 
> Calling the quit() method of the Tk object should
> break out of the main loop.
> 
> -- 
> Greg Ewing, Computer Science Dept,
> +--------------------------------------+
> University of Canterbury,    | A citizen of NewZealandCorp, a   |
> Christchurch, New Zealand    | wholly-owned subsidiary of USA Inc.  |
> greg at cosc.canterbury.ac.nz    +--------------------------------------+




More information about the Python-list mailing list