Sublime Forum

Pyglet

#1

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.

0 Likes

#2

I believe that Sublime Text does something weird with its python and it’s hard to get it to show any sort of GUI.

0 Likes

#3

I created a plugin to use an external console window. This fixes the problem.

github.com/joeyespo/sublimetext-console-exec

0 Likes

How to split screen, code on left, output on right