# HG changeset patch # User KarstenBock@gmx.net # Date 1314959395 -7200 # Node ID 0443ab9533cef46819f84fcd0f8eec215c55bfb4 # Parent 9f631144124f96312d185107fa1ee00a9cc424c4 Fixed inconsistent indentation. diff -r 9f631144124f -r 0443ab9533ce src/parpg/application.py --- a/src/parpg/application.py Thu Sep 01 23:26:50 2011 +0200 +++ b/src/parpg/application.py Fri Sep 02 12:29:55 2011 +0200 @@ -37,7 +37,7 @@ class KeyFilter(fife.IKeyFilter): """ This is the implementation of the fife.IKeyFilter class. - + Prevents any filtered keys from being consumed by guichan. """ def __init__(self, keys): @@ -49,12 +49,12 @@ return event.getKey().getValue() in self._keys class ApplicationListener(KeyListener, - MouseListener, - ConsoleExecuter, - CommandListener, - WidgetListener): + MouseListener, + ConsoleExecuter, + CommandListener, + WidgetListener): """Basic listener for PARPG""" - + def __init__(self, event_listener, engine, view, model): """Initialize the instance. @type engine: fife.engine @@ -74,7 +74,7 @@ self.model = model keyfilter = KeyFilter([fife.Key.ESCAPE]) keyfilter.__disown__() - + engine.getEventManager().setKeyFilter(keyfilter) self.quit = False self.about_window = None @@ -109,12 +109,12 @@ We use an MVC model model self.gamesceneview is our view,self.model is our model self.controller is the controller""" - + def __init__(self, setting): """Initialise the instance. @return: None""" - self._setting = setting - self.manager = FifeManager() + self._setting = setting + self.manager = FifeManager() self.engine = fife.Engine() self.loadSettings() self.engine.init() @@ -163,7 +163,7 @@ for fontdef in fontdefs: pychan.internal.get_manager().addFont(PARPGFont(fontdef, self._setting)) - + def loadSettings(self): """ @@ -212,4 +212,4 @@ if self.listener.quit: self.breakRequested = True #pylint: disable-msg=C0103 else: - self.manager._pump() + self.manager._pump() \ No newline at end of file