fixed to use latest version of pyglet
This commit is contained in:
parent
ea57844c33
commit
82b73dc84d
3 changed files with 8 additions and 7 deletions
|
@ -44,9 +44,9 @@ def init_window() -> None:
|
||||||
# an available resolution
|
# an available resolution
|
||||||
pass
|
pass
|
||||||
|
|
||||||
display = pyglet.canvas.get_display()
|
display = pyglet.display.get_display()
|
||||||
screens = display.get_screens()
|
screens = display.get_screens()
|
||||||
windows = []
|
windows = []
|
||||||
for screen in screens:
|
for screen in screens:
|
||||||
windows.append(window.Window(fullscreen=True, screen=screen))
|
windows.append(pyglet.window.Window(fullscreen=True, screen=screen))
|
||||||
window = pyglet.window.Window())
|
window = pyglet.window.Window()
|
|
@ -7,6 +7,7 @@ unittest.main(exit=False)
|
||||||
print("Hello!!!")
|
print("Hello!!!")
|
||||||
|
|
||||||
engine.screen.init_window()
|
engine.screen.init_window()
|
||||||
|
window = engine.screen.window
|
||||||
|
|
||||||
label = pyglet.text.Label('Hello, world',
|
label = pyglet.text.Label('Hello, world',
|
||||||
font_name='Times New Roman',
|
font_name='Times New Roman',
|
||||||
|
@ -14,7 +15,7 @@ label = pyglet.text.Label('Hello, world',
|
||||||
x=window.width//2, y=window.height//2,
|
x=window.width//2, y=window.height//2,
|
||||||
anchor_x='center', anchor_y='center')
|
anchor_x='center', anchor_y='center')
|
||||||
|
|
||||||
@pyglet.window.event
|
@window.event
|
||||||
def on_draw():
|
def on_draw():
|
||||||
engine.screen.window.clear()
|
engine.screen.window.clear()
|
||||||
label.draw()
|
label.draw()
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
patch==1.16
|
patch
|
||||||
pyglet==2.0.10
|
pyglet
|
||||||
unoconv==0.9.0
|
unoconv
|
||||||
|
|
Loading…
Add table
Reference in a new issue