Commit d56c1092 authored by Jack Jansen's avatar Jack Jansen

Changed the way mac mainloop event checking is turned off

parent ee23d6ec
...@@ -104,7 +104,9 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */ ...@@ -104,7 +104,9 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
static object *StdwinError; /* Exception stdwin.error */ 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 */ /* Window and menu object types declared here because of forward references */
...@@ -2605,6 +2607,7 @@ initstdwin() ...@@ -2605,6 +2607,7 @@ initstdwin()
if (!inited) { if (!inited) {
#ifdef macintosh #ifdef macintosh
winit(); winit();
PyMac_DoYieldEnabled = 0;
#else #else
char buf[1000]; char buf[1000];
int argc = 0; int argc = 0;
...@@ -2633,7 +2636,6 @@ initstdwin() ...@@ -2633,7 +2636,6 @@ initstdwin()
} }
#endif #endif
inited = 1; inited = 1;
StdwinIsActive = 1;
} }
m = initmodule("stdwin", stdwin_methods); m = initmodule("stdwin", stdwin_methods);
d = getmoduledict(m); d = getmoduledict(m);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment