[Pygui] Application exit on Main Window close
greg.ewing at canterbury.ac.nz
Thu Dec 9 23:07:00 CET 2010
Colin Brown wrote:
> I am running PyGUI on OSX 10.5.8
> but cannot figure out how to make the python application exit when I
> close the main PyGUI window?
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
More information about the Pygui