Mercurial > getan
changeset 202:3ed024299214
Add a GetanController set_state method
Allow to set the current state of the controller.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 05 Apr 2013 19:32:20 +0200 |
parents | 5d988b32723e |
children | 1188998929bc |
files | getan/controller.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/controller.py Fri Apr 05 19:31:42 2013 +0200 +++ b/getan/controller.py Fri Apr 05 19:32:20 2013 +0200 @@ -179,6 +179,9 @@ def get_config(self): return self.config + def set_state(self, state): + self.state = state + def exit(self): logger.info("GetanController: exit.") raise urwid.ExitMainLoop()