diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-11-10 14:51:26 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-11-10 14:51:26 (GMT) |
commit | 1e8557a9fe1267dedf57322abb1bf3deab53fd3f (patch) | |
tree | 7f165ad4fe46b29c857fd8a9aa13c3727a91d82a /Mac/Python/macmain.c | |
parent | 8324836329f86204417522d9de210becf0189a09 (diff) | |
download | cpython-1e8557a9fe1267dedf57322abb1bf3deab53fd3f.zip cpython-1e8557a9fe1267dedf57322abb1bf3deab53fd3f.tar.gz cpython-1e8557a9fe1267dedf57322abb1bf3deab53fd3f.tar.bz2 |
For MW Python, update titlebar of window when python exits.
Diffstat (limited to 'Mac/Python/macmain.c')
-rw-r--r-- | Mac/Python/macmain.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 547456f..f6b1dee 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -38,6 +38,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef __MWERKS__ #include <SIOUX.h> +#define USE_SIOUX #endif #ifdef THINK_C @@ -114,7 +115,7 @@ PyMac_InitApplet() #ifdef USE_MAC_SHARED_LIBRARY PyMac_AddLibResources(); #endif -#ifdef __MWERKS__ +#ifdef USE_SIOUX SIOUXSettings.asktosaveonclose = 0; SIOUXSettings.showstatusline = 0; SIOUXSettings.tabspaces = 4; @@ -141,7 +142,7 @@ PyMac_InitApplication() #ifdef USE_MAC_SHARED_LIBRARY PyMac_AddLibResources(); #endif -#ifdef __MWERKS__ +#ifdef USE_SIOUX SIOUXSettings.asktosaveonclose = 0; SIOUXSettings.showstatusline = 0; SIOUXSettings.tabspaces = 4; @@ -305,9 +306,12 @@ PyMac_Exit(status) else keep = keep_normal; -#ifdef __MWERKS__ - if (keep) - printf("\n[Terminated]\n"); +#ifdef USE_SIOUX + if (keep) { + SIOUXSettings.standalone = 1; + SIOUXSettings.autocloseonquit = 0; + SIOUXSetTitle("\pÇterminatedÈ"); + } else SIOUXSettings.autocloseonquit = 1; #endif |