]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added a global 'stdwin is active' flag.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Jan 1995 16:40:10 +0000 (16:40 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Jan 1995 16:40:10 +0000 (16:40 +0000)
Modules/stdwinmodule.c

index 896207cca5ecf206da74b37cb292458d42d078cd..5ca798f49d00808b7110158c76b167f155928632 100644 (file)
@@ -104,6 +104,8 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
 
 static object *StdwinError; /* Exception stdwin.error */
 
+int StdwinIsActive;                    /* True as soon as stdwin imported */
+
 /* Window and menu object types declared here because of forward references */
 
 typedef struct {
@@ -2631,6 +2633,7 @@ initstdwin()
                }
 #endif
                inited = 1;
+               StdwinIsActive = 1;
        }
        m = initmodule("stdwin", stdwin_methods);
        d = getmoduledict(m);