def start_pyasteroids(): random.seed() import sys from OpenGL.GLUT import glutInit glutInit(sys.argv) app = QApplication(argv) # Game state Player() # Load the config files in memory ConfigManager() # Add the custom fonts to the Qt database FontManager() # Creates the window (GLWidget is created there) win = AsteroidsMainWindow() # Pop-up the window win.show() # Faster processing try: import psyco except: print 'You currently do not have the Psyco module in your PYTHONPATH.' print 'It is highly advisable to install it for a much better gaming performance.' print 'Official site: http://psyco.sourceforge.net/' # Gives control to Qt app.exec_()