jonyfries
16-05-2010 16:44:44
When I run Basic Tutorial from IDLE the program freezes when I attempt to exit it.
When I run Basic Tutorial from windows (by double clicking on the .py file) the program does not freeze.
Other wise everything runs and works as expected.
Any ideas what could be causing this?
When I run Basic Tutorial from windows (by double clicking on the .py file) the program does not freeze.
Other wise everything runs and works as expected.
Any ideas what could be causing this?
import ogre.renderer.OGRE as ogre
import SampleFramework as sf
class TutorialApplication(sf.Application):
def _createScene(self):
sceneManager = self.sceneManager
sceneManager.ambientLight = ogre.ColourValue(1,1,1)
ent1 = sceneManager.createEntity("Robot", "robot.mesh")
node1 = sceneManager.getRootSceneNode().createChildSceneNode("RobotNode")
node1.attachObject(ent1)
if __name__ == '__main__':
ta = TutorialApplication()
ta.go()