changeset 257:2df167b07763

Allow to set focus to the project or entry list in getan view via strings
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 11 Apr 2013 11:41:46 +0200
parents bcc5951edaad
children 4f7cb3693d20
files getan/view.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Thu Apr 11 11:41:01 2013 +0200
+++ b/getan/view.py	Thu Apr 11 11:41:46 2013 +0200
@@ -338,5 +338,9 @@
     def set_focus(self, elem):
         if elem in [0, 1]:
             self.columns.set_focus_column(elem)
+        elif elem == "projects":
+            self.columns.set_focus_colum(0)
+        elif elem == "entries":
+            self.columns.set_focus_colum(1)
         else:
             self.frame.set_focus(elem)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)