[Pythonmac-SIG] Re: No os._exit() in MacOS? (fwd)

David Eppstein eppstein@ics.uci.edu
Sun, 01 Jul 2001 14:29:33 -0700


This is regarding some problems I've been having with quitting W apps in 
MacPython -- Just found a workaround and suggested forwarding to this 
list. I've put the problematic source online at
http://www.ics.uci.edu/~eppstein/noquit.py
-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein@ics.uci.edu http://www.ics.uci.edu/~eppstein/

---------- Forwarded Message ----------
Date: Sunday, July 1, 2001 11:18 PM +0200
From: Just van Rossum <just@letterror.com>
To: David Eppstein <eppstein@ics.uci.edu>
Subject: Re: No os._exit() in MacOS?

Hi David,

> See attached source noquit.py, slightly modified from the example in
> http://www.nevada.edu/~cwebster/Python/WWidgets/usingW.html#applications
> I also made a file noquit.rsrc copied from
> http://www.nevada.edu/~cwebster/Python/WWidgets/MyApp.rsrc.hqx
> and saved as an applet from the IDE.
>
> When I run the resulting applet, cmd-Q quits normally,
> but pushing the "Quit" button (which just calls _quit)
> results in a frozen applet.

Ok, I managed to work around the problem: it seems to be a bug related to
the SIOUX output window. Please post a followup to the macpython list, as
I have no idea what exactly causes it -- it *is* a bug, and Jack should
know about it.

Here's the workaround recipe:
Drop the resource file belonging to your app (<appname>.rsrc) onto
EditPythonPrefs. Choose "Default Startup Options". Choose "Delay console
window until needed" as well as "Keep stdio window open on: *never*".
(Those are good settings for W apps anyway.) Now build your applet again.

Good luck!

Just

---------- End Forwarded Message ----------