Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macmain.c @ 3247:20d74fa3b50b legacy-trunk
For MW Python, update titlebar of window when python exits.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 10 Nov 1995 14:51:26 +0000 |
| parents | 463b26fa4d7b |
| children | 14991c4331df |
line wrap: on
line diff
--- a/Mac/Python/macmain.c Fri Nov 10 14:49:44 1995 +0000 +++ b/Mac/Python/macmain.c Fri Nov 10 14:51:26 1995 +0000 @@ -38,6 +38,7 @@ #ifdef __MWERKS__ #include <SIOUX.h> +#define USE_SIOUX #endif #ifdef THINK_C @@ -114,7 +115,7 @@ #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 @@ #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 @@ 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
