Debian Codegraph @

examples/hello_world.py

raw symbols SCIP
1 import pyglet
2
3 window = pyglet.window.Window()
4 label = pyglet.text.Label('Hello, world!',
5 font_size=36,
6 x=window.width // 2,
7 y=window.height // 2,
8 anchor_x='center',
9 anchor_y='center')
10
11
12 @window.event
13 def on_draw():
14 window.clear()
15 label.draw()
16
17
18 pyglet.app.run()