summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/gwin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/stdwin/gwin.py')
-rwxr-xr-xLib/stdwin/gwin.py6
1 files changed, 5 insertions, 1 deletions
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: