diff Modules/stdwinmodule.c @ 2263:7895a97313e5 legacy-trunk

Changed the way mac mainloop event checking is turned off
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 27 Jan 1995 14:44:16 +0000
parents c23d092215d2
children 9d6e97d66670
line wrap: on
line diff
--- a/Modules/stdwinmodule.c	Fri Jan 27 14:43:25 1995 +0000
+++ b/Modules/stdwinmodule.c	Fri Jan 27 14:44:16 1995 +0000
@@ -104,7 +104,9 @@
 
 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 @@
 	if (!inited) {
 #ifdef macintosh
 		winit();
+		PyMac_DoYieldEnabled = 0;
 #else
 		char buf[1000];
 		int argc = 0;
@@ -2633,7 +2636,6 @@
 		}
 #endif
 		inited = 1;
-		StdwinIsActive = 1;
 	}
 	m = initmodule("stdwin", stdwin_methods);
 	d = getmoduledict(m);