changeset 245:4ecc6bdf0698

Allow to set focus on column or frame element in GetanView set_focus
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 09 Apr 2013 22:17:13 +0200
parents 6aed37250c35
children 2b2738c8c130
files getan/view.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Tue Apr 09 22:16:34 2013 +0200
+++ b/getan/view.py	Tue Apr 09 22:17:13 2013 +0200
@@ -325,5 +325,8 @@
     def update_entries(self, entries):
         self.entr_list.set_rows(entries)
 
-    def set_focus(self, column):
-        self.columns.set_focus_column(column)
+    def set_focus(self, elem):
+        if elem in [0, 1]:
+            self.columns.set_focus_column(elem)
+        else:
+            self.frame.set_focus(elem)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)