changeset 86:c9684f6d54ea

Add new method in ListWidget to get the current node element
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 30 May 2011 15:34:55 +0200
parents dbdd75c4ee03
children 0e5b6826a4ef
files ChangeLog getan/view.py
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 25 15:05:04 2011 +0200
+++ b/ChangeLog	Mon May 30 15:34:55 2011 +0200
@@ -1,3 +1,8 @@
+2011-05-30	Björn Ricks <bjoern.ricks@intevation.de>
+
+	* getan/view.py (ListWidget): Add new node_in_focus
+	method to get the current node in list
+
 2011-05-25	Björn Ricks <bjoern.ricks@intevation.de>
 
 	Fix for #1569
--- a/getan/view.py	Wed May 25 15:05:04 2011 +0200
+++ b/getan/view.py	Mon May 30 15:34:55 2011 +0200
@@ -75,6 +75,11 @@
             return self.rows[self.focused].get_item()
         return None
 
+    def node_in_focus(self):
+        if self.rows:
+            return self.rows[self.focused]
+        return None
+
     def up(self):
         if self.focused > 0:
             logger.debug("ListWidget: navigate to upper row.")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)