changeset 321:6e72a6b5e94f

Update mapping for foreground and background color settings of nodes Use a consistent name schme here
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 14:28:21 +0200
parents 922935ebfdd5
children 014ce0220763
files getan/nodes.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/getan/nodes.py	Fri Oct 11 14:26:15 2013 +0200
+++ b/getan/nodes.py	Fri Oct 11 14:28:21 2013 +0200
@@ -34,18 +34,18 @@
     def update_w(self):
         if self.has_focus:
             if self.selected:
-                self._w.set_focus_map({None: 'selected focus entry'})
-                self._w.set_attr_map({None: 'selected focus entry'})
+                self._w.set_focus_map({None: 'selected_focus_entry'})
+                self._w.set_attr_map({None: 'selected_focus_entry'})
             else:
-                self._w.set_focus_map({None: 'focus entry'})
-                self._w.set_attr_map({None: 'focus entry'})
+                self._w.set_focus_map({None: 'focus_entry'})
+                self._w.set_attr_map({None: 'focus_entry'})
         else:
             if self.selected:
-                self._w.set_focus_map({None: 'selected entry'})
-                self._w.set_attr_map({None: 'selected entry'})
+                self._w.set_focus_map({None: 'selected_entry'})
+                self._w.set_attr_map({None: 'selected_entry'})
             else:
-                self._w.set_focus_map({None: 'entry body'})
-                self._w.set_attr_map({None: 'entry body'})
+                self._w.set_focus_map({None: 'entry'})
+                self._w.set_attr_map({None: 'entry'})
 
     def select(self):
         self.selected = not self.selected
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)