# 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
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:
# 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
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: