changeset 216:bcaddd0319de

Remove unnecessary methods These methods become unnecessary by urwids internal key handling for ListWidgets
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 05 Apr 2013 19:59:26 +0200
parents a16c2c42d998
children 7d6615ac2453
files getan/view.py
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Fri Apr 05 19:58:21 2013 +0200
+++ b/getan/view.py	Fri Apr 05 19:59:26 2013 +0200
@@ -84,26 +84,6 @@
             return self.rows[self.focused]
         return None
 
-    def up(self):
-        if self.focused > 0:
-            logger.debug("ListWidget: navigate to upper row.")
-            self.update_focus(self.focused-1, self.focused)
-
-    def down(self):
-        if self.focused < len(self.rows) - 1:
-            logger.debug("ListWidget: navigate to lower row.")
-            self.update_focus(self.focused+1, self.focused)
-
-    def validate_view(self):
-        if self.focused < self.top:
-            self.top = self.focused
-            self._update_view()
-        if self.focused + 8 >= self.top + self.size[1]:
-            self.top = self.focused - (self.size[1]) + 9
-        if self.top < 0:
-            self.top = 0
-        self._update_view()
-
     def select(self):
         if not self.rows:
             return None
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)