Output Tried same code in 3.7 and the label can be displayed but not in python 3.9
I tried run same code in 3.7 and the label can be displayed.
Version of pyglet is 1.5.16.
Tried to add "win.flip()" but still no luck.
import pyglet
import pyglet.text
window = pyglet.window.Window(500,500, "Testing!!!")
label = pyglet.text.Label("Hello,wold!!!",x=10,y=10)
label.color = (100, 255, 100, 255)
@window.event
def on_draw():
window.clear()
label.draw()
window.flip()
pyglet.app.run()