diff options
author | Guido van Rossum <guido@python.org> | 1990-12-26 15:37:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1990-12-26 15:37:05 (GMT) |
commit | a4ddbd885e7654da03881feb6e588006f024653e (patch) | |
tree | 66369fc63fbcfebdba9566217608eb8bad3e3c8c | |
parent | fc8e0d980f7d118e9ffb6a51228588f4211f2643 (diff) | |
download | cpython-a4ddbd885e7654da03881feb6e588006f024653e.zip cpython-a4ddbd885e7654da03881feb6e588006f024653e.tar.gz cpython-a4ddbd885e7654da03881feb6e588006f024653e.tar.bz2 |
Use stdwinevents instead of stdwinsupport.
-rw-r--r-- | Lib/lib-stdwin/gwin.py | 6 | ||||
-rwxr-xr-x | Lib/stdwin/gwin.py | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Lib/lib-stdwin/gwin.py b/Lib/lib-stdwin/gwin.py index 15aa432..a53f69c 100644 --- a/Lib/lib-stdwin/gwin.py +++ b/Lib/lib-stdwin/gwin.py @@ -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: diff --git a/Lib/stdwin/gwin.py b/Lib/stdwin/gwin.py index 15aa432..a53f69c 100755 --- a/Lib/stdwin/gwin.py +++ b/Lib/stdwin/gwin.py @@ -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: |