##// END OF EJS Templates
Added the close handler
Nicolas Rougier -
Show More
@@ -18,6 +18,10 b" label = pyglet.text.Label('Hello, world',"
18 18 x=window.width//2, y=window.height//2,
19 19 anchor_x='center', anchor_y='center')
20 20 @window.event
21 def on_close():
22 window.close()
23
24 @window.event
21 25 def on_draw():
22 26 window.clear()
23 27 label.draw()
General Comments 0
You need to be logged in to leave comments. Login now