summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-27 14:44:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-01-27 14:44:16 (GMT)
commitd56c10927237a51041f89c73cc64a9e5620c5aab (patch)
tree7d8d5b3ed0c3f23a9f0836c3c0d9cb9499fa90e8 /Modules/stdwinmodule.c
parentee23d6ec87387310a22522ece073e399362a9f45 (diff)
downloadcpython-d56c10927237a51041f89c73cc64a9e5620c5aab.zip
cpython-d56c10927237a51041f89c73cc64a9e5620c5aab.tar.gz
cpython-d56c10927237a51041f89c73cc64a9e5620c5aab.tar.bz2
Changed the way mac mainloop event checking is turned off
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r--Modules/stdwinmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 5ca798f..b256695b 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -104,7 +104,9 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
static object *StdwinError; /* Exception stdwin.error */
-int StdwinIsActive; /* True as soon as stdwin imported */
+#ifdef macintosh
+#include "macglue.h"
+#endif
/* Window and menu object types declared here because of forward references */
@@ -2605,6 +2607,7 @@ initstdwin()
if (!inited) {
#ifdef macintosh
winit();
+ PyMac_DoYieldEnabled = 0;
#else
char buf[1000];
int argc = 0;
@@ -2633,7 +2636,6 @@ initstdwin()
}
#endif
inited = 1;
- StdwinIsActive = 1;
}
m = initmodule("stdwin", stdwin_methods);
d = getmoduledict(m);