]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use stdwinevents instead of stdwinsupport.
authorGuido van Rossum <guido@python.org>
Wed, 26 Dec 1990 15:37:05 +0000 (15:37 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 26 Dec 1990 15:37:05 +0000 (15:37 +0000)
Lib/lib-stdwin/gwin.py
Lib/stdwin/gwin.py

index 15aa4327ce5af35473a6d5fddb9b2e4c2bbad9b6..a53f69c46cb6dd7e96ac6df741c1f8b7eeb3b2c8 100644 (file)
@@ -5,8 +5,10 @@
 # The mainloop() function here is an event dispatcher for all window types.
 
 import stdwin
-import stdwinsupport
+from stdwinevents import *
 
+# XXX Old version of stdwinevents, should go
+import stdwinsupport
 S = stdwinsupport                      # Shorthand
 
 windows = []                           # List of open windows
@@ -75,6 +77,8 @@ def treatevent(e):                    # Handle a stdwin event
                w.move(w)
        elif type = S.we_timer:
                w.timer(w)
+       elif type = WE_CLOSE:
+               w.close(w)
 
 def treatcommand(w, type):             # Handle a we_command event
        if type = S.wc_close:
index 15aa4327ce5af35473a6d5fddb9b2e4c2bbad9b6..a53f69c46cb6dd7e96ac6df741c1f8b7eeb3b2c8 100755 (executable)
@@ -5,8 +5,10 @@
 # The mainloop() function here is an event dispatcher for all window types.
 
 import stdwin
-import stdwinsupport
+from stdwinevents import *
 
+# XXX Old version of stdwinevents, should go
+import stdwinsupport
 S = stdwinsupport                      # Shorthand
 
 windows = []                           # List of open windows
@@ -75,6 +77,8 @@ def treatevent(e):                    # Handle a stdwin event
                w.move(w)
        elif type = S.we_timer:
                w.timer(w)
+       elif type = WE_CLOSE:
+               w.close(w)
 
 def treatcommand(w, type):             # Handle a we_command event
        if type = S.wc_close: