Use stdwinevents instead of stdwinsupport.

This commit is contained in:
Guido van Rossum 1990-12-26 15:37:05 +00:00
parent fc8e0d980f
commit a4ddbd885e
2 changed files with 10 additions and 2 deletions

View File

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

View File

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