Home Download Buy Blog Forum Support

Pyglet

Pyglet

Postby joeyespo on Sat Aug 04, 2012 9:39 pm

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.

Code: Select all
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.
joeyespo
 
Posts: 8
Joined: Sun Jul 29, 2012 9:38 pm
Location: Pittsburgh, PA

Re: Pyglet

Postby adzenith on Mon Aug 06, 2012 6:10 pm

I believe that Sublime Text does something weird with its python and it's hard to get it to show any sort of GUI.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Pyglet

Postby joeyespo on Tue Nov 06, 2012 3:05 pm

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

https://github.com/joeyespo/sublimetext-console-exec
joeyespo
 
Posts: 8
Joined: Sun Jul 29, 2012 9:38 pm
Location: Pittsburgh, PA


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 27 guests