[Pygui] Application exit on Main Window close

Colin Brown baykiwi at gmail.com
Sun Dec 12 05:24:12 CET 2010


Greg Ewing wrote:

 > One way would be to override the close_cmd() method of the
 > window and have it call quit_cmd() on the application.
 > Another way is to override zero_windows_allowed() on the
 > application and have it return False, although that's not
 > an official part of the API at the moment, so it might
 > change.

Thanks Greg, both these work.  It was a little frustrating having to  
repeatedly kill my terminal session during development ;-)

Cheers
Colin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pygui/attachments/20101212/a13c1d51/attachment.html>


More information about the Pygui mailing list