fixed to use latest version of pyglet

This commit is contained in:
cecilkorik 2025-04-20 17:14:32 -04:00
parent ea57844c33
commit 82b73dc84d
3 changed files with 8 additions and 7 deletions

View file

@ -44,9 +44,9 @@ def init_window() -> None:
# an available resolution
pass
display = pyglet.canvas.get_display()
display = pyglet.display.get_display()
screens = display.get_screens()
windows = []
for screen in screens:
windows.append(window.Window(fullscreen=True, screen=screen))
window = pyglet.window.Window())
windows.append(pyglet.window.Window(fullscreen=True, screen=screen))
window = pyglet.window.Window()

View file

@ -7,6 +7,7 @@ unittest.main(exit=False)
print("Hello!!!")
engine.screen.init_window()
window = engine.screen.window
label = pyglet.text.Label('Hello, world',
font_name='Times New Roman',
@ -14,7 +15,7 @@ label = pyglet.text.Label('Hello, world',
x=window.width//2, y=window.height//2,
anchor_x='center', anchor_y='center')
@pyglet.window.event
@window.event
def on_draw():
engine.screen.window.clear()
label.draw()

View file

@ -1,3 +1,3 @@
patch==1.16
pyglet==2.0.10
unoconv==0.9.0
patch
pyglet
unoconv