I’m having a small problem with Pyglet. Building the following source code will show “Running” in the console window, but will not show the Pyglet main window. It works fine when running via the command line.
import pyglet
game_window = pyglet.window.Window(800, 600)
if __name__ == '__main__':
print 'Running'
pyglet.app.run()
I’m on Windows XP and trying to find the problem. Not sure if it’s Sublime Text of Pyglet at the moment. Anyone here know what could be happening?
Thanks.