Mercurial > fife-parpg
diff engine/python/fife/extensions/basicapplication.py @ 566:90d369c788c0
Updated the basicapplication extension to initialize pychan and modal execution. Also fixed the demos and editor to reflect this change.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 28 Jun 2010 15:43:42 +0000 |
parents | 00aa20dc8b7f |
children | 855ad500f991 |
line wrap: on
line diff
--- a/engine/python/fife/extensions/basicapplication.py Mon Jun 28 07:16:05 2010 +0000 +++ b/engine/python/fife/extensions/basicapplication.py Mon Jun 28 15:43:42 2010 +0000 @@ -30,6 +30,7 @@ from fife import fife from fife.extensions import fifelog from fife.extensions.serializers.xmlanimation import XMLAnimationLoader +from fife.extensions import pychan from fife.extensions.fife_settings import Setting class ExitEventListener(fife.IKeyListener): @@ -85,10 +86,13 @@ self._animationloader = XMLAnimationLoader(self.engine.getImagePool(), self.engine.getVFS()) self.engine.getAnimationPool().addResourceLoader(self._animationloader) + pychan.init(self.engine, debug=self._setting.get("FIFE", "PychanDebug", False)) + pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop) + self.quitRequested = False self.breakRequested = False self.returnValues = [] - + def loadSettings(self): """ Load the settings from a python file and load them into the engine.