[Getan-commits] [PATCH 26 of 32] Update mapping for foreground and background color settings of nodes

Wald Commits scm-commit at wald.intevation.org
Fri Oct 11 14:34:10 CEST 2013


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381494501 -7200
# Node ID 6e72a6b5e94f5e1cfc6c3b765ab3eac4a4624ee8
# Parent  922935ebfdd51762cc61fa02ffc84893e7fa6aee
Update mapping for foreground and background color settings of nodes

Use a consistent name schme here

diff -r 922935ebfdd5 -r 6e72a6b5e94f getan/nodes.py
--- 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


More information about the Getan-commits mailing list