Pyglet hello world example doesn't show label until a key is pressed
<pre><code>import pyglet

window = pyglet.window.Window()
label = pyglet.text.Label(&quot;Hello World!&quot;,
                            font_name=&quot;Times New Roman&quot;,
                            color=(255,255,255,255),
                            font_size=36,
                            x=window.width//2, y=window.height//2,
                            anchor_x=&quot;center&quot;, anchor_y=&quot;center&quot;)

@window.event
def on_draw():
     window.clear()
     label.draw()

pyglet.app.run()
</code></pre>
<p>This code is taken from the pyglet tutorial at <a href="https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/programming_guide/quickstart.html" rel="nofollow noreferrer">https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/programming_guide/quickstart.html</a> but when run it doesn't draw the label until any key is pressed. I added the color as I thought the text may have defaulted to black.</p>
<p>Am I missing something really obvious as to why this behaviour is happening?</p>
<p>OK, having had my memory jogged by the comments, I installed the MS Fonts and it now works in python 2.x but I still need to press a key to see the text in python 3. Maybe the font thing is a red-herring and there is some incompatibility with python 3.</p>