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