]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
integrate with stdwinq
authorGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 13:24:58 +0000 (13:24 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 13:24:58 +0000 (13:24 +0000)
Lib/lib-stdwin/gwin.py
Lib/stdwin/gwin.py

index a53f69c46cb6dd7e96ac6df741c1f8b7eeb3b2c8..9dac882317aa2868afd5e3c2cca899b85c056738 100644 (file)
@@ -4,7 +4,7 @@
 # This is used as a base class from which to derive other window types.
 # The mainloop() function here is an event dispatcher for all window types.
 
-import stdwin
+import stdwin, stdwinq
 from stdwinevents import *
 
 # XXX Old version of stdwinevents, should go
@@ -46,7 +46,7 @@ def open(title):                      # Open a generic window
 
 def mainloop():                                # Handle events until no windows left
        while windows:
-               treatevent(stdwin.getevent())
+               treatevent(stdwinq.getevent())
 
 def treatevent(e):                     # Handle a stdwin event
        type, w, detail = e
index a53f69c46cb6dd7e96ac6df741c1f8b7eeb3b2c8..9dac882317aa2868afd5e3c2cca899b85c056738 100755 (executable)
@@ -4,7 +4,7 @@
 # This is used as a base class from which to derive other window types.
 # The mainloop() function here is an event dispatcher for all window types.
 
-import stdwin
+import stdwin, stdwinq
 from stdwinevents import *
 
 # XXX Old version of stdwinevents, should go
@@ -46,7 +46,7 @@ def open(title):                      # Open a generic window
 
 def mainloop():                                # Handle events until no windows left
        while windows:
-               treatevent(stdwin.getevent())
+               treatevent(stdwinq.getevent())
 
 def treatevent(e):                     # Handle a stdwin event
        type, w, detail = e