changeset 198:9f85ffa0a2f6

Remove unhandled_keypress from controller Don't use unhandled_keypress to act on user input.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 05 Apr 2013 19:18:24 +0200
parents 2eb2bbf042b3
children 3fa4ab9146dd
files getan/controller.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Fri Apr 05 19:14:03 2013 +0200
+++ b/getan/controller.py	Fri Apr 05 19:18:24 2013 +0200
@@ -44,13 +44,9 @@
         self.loop = urwid.MainLoop(self.view.get_frame(),
                                    self.view.get_palette(),
                                    screen=urwid.raw_display.Screen(),
-                                   unhandled_input=self.unhandled_keypress,
                                    input_filter=self.input_filter)
         self.loop.run()
 
-    def unhandled_keypress(self, key):
-        self.state = self.state.keypress(key)
-
     def input_filter(self, input, raw_input):
         if 'window resize' in input:
             self.view.loop.screen_size = None
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)