If the game runs normally without IDLE, then, to run it from IDLE, add
pygame.quit() at the end of the script:

if __name__ == "__main__":
    MainWindow = PyManMain()
    MainWindow.MainLoop()
    pygame.quit()

... and just before the sys.exit():

    def MainLoop(self):
        """This is the Main Loop of the Game"""
        while 1:
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    pygame.quit()
                    sys.exit()
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to