Kaydet (Commit) 0b744802 authored tarafından Guido van Rossum's avatar Guido van Rossum

integrate with stdwinq

üst dff84043
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This is used as a base class from which to derive other window types. # This is used as a base class from which to derive other window types.
# The mainloop() function here is an event dispatcher for all window types. # The mainloop() function here is an event dispatcher for all window types.
import stdwin import stdwin, stdwinq
from stdwinevents import * from stdwinevents import *
# XXX Old version of stdwinevents, should go # XXX Old version of stdwinevents, should go
...@@ -46,7 +46,7 @@ def open(title): # Open a generic window ...@@ -46,7 +46,7 @@ def open(title): # Open a generic window
def mainloop(): # Handle events until no windows left def mainloop(): # Handle events until no windows left
while windows: while windows:
treatevent(stdwin.getevent()) treatevent(stdwinq.getevent())
def treatevent(e): # Handle a stdwin event def treatevent(e): # Handle a stdwin event
type, w, detail = e type, w, detail = e
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This is used as a base class from which to derive other window types. # This is used as a base class from which to derive other window types.
# The mainloop() function here is an event dispatcher for all window types. # The mainloop() function here is an event dispatcher for all window types.
import stdwin import stdwin, stdwinq
from stdwinevents import * from stdwinevents import *
# XXX Old version of stdwinevents, should go # XXX Old version of stdwinevents, should go
...@@ -46,7 +46,7 @@ def open(title): # Open a generic window ...@@ -46,7 +46,7 @@ def open(title): # Open a generic window
def mainloop(): # Handle events until no windows left def mainloop(): # Handle events until no windows left
while windows: while windows:
treatevent(stdwin.getevent()) treatevent(stdwinq.getevent())
def treatevent(e): # Handle a stdwin event def treatevent(e): # Handle a stdwin event
type, w, detail = e type, w, detail = e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment