- changed status to resolved
Graphics/Events: doesn't handle key-press events correctly
Issue #125
resolved
from Graphics import *
import Events
win = Window()
def press(o, e):
print(type(o), e.time)
c1 = Circle((100, 100), 50)
c1.draw(win)
c2 = Circle((200, 100), 50)
c2.draw(win)
#s = Sprite("bear")
#s.drawAt(win, (150, 200))
Events.init()
win.listen("key-press")
#c1.subscribe("key-press", press)
c2.subscribe("key-press", press)
#s.subscribe("key-press", press)
Comments (1)
-
reporter - Log in to comment
Fixed with recent changes.