From: Guido van Rossum Date: Wed, 26 Dec 1990 15:37:05 +0000 (+0000) Subject: Use stdwinevents instead of stdwinsupport. X-Git-Tag: v0.9.8~1082 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ddbd885e7654da03881feb6e588006f024653e;p=thirdparty%2FPython%2Fcpython.git Use stdwinevents instead of stdwinsupport. --- diff --git a/Lib/lib-stdwin/gwin.py b/Lib/lib-stdwin/gwin.py index 15aa4327ce5a..a53f69c46cb6 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 15aa4327ce5a..a53f69c46cb6 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: