[GRASS-SVN] r51721 - grass/branches/develbranch_6/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 13:20:33 EDT 2012


Author: martinl
Date: 2012-05-24 10:20:32 -0700 (Thu, 24 May 2012)
New Revision: 51721

Modified:
   grass/branches/develbranch_6/gui/wxpython/dbmgr/manager.py
Log:
wxGUI: use keys instead (see r51719)


Modified: grass/branches/develbranch_6/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/dbmgr/manager.py	2012-05-24 17:19:02 UTC (rev 51720)
+++ grass/branches/develbranch_6/gui/wxpython/dbmgr/manager.py	2012-05-24 17:20:32 UTC (rev 51721)
@@ -2504,7 +2504,7 @@
                 row += 1
                 continue
 
-            if label.GetLabel() == "Layer:":
+            if key == 'layer':
                 style = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT
             else:
                 style = wx.ALIGN_CENTER_VERTICAL | wx.EXPAND
@@ -2739,7 +2739,7 @@
             label, value = self.modifyLayerWidgets[key]
             dataSizer.Add(item = label,
                           flag = wx.ALIGN_CENTER_VERTICAL)
-            if label.GetLabel() == "Layer:":
+            if key == 'layer':
                 dataSizer.Add(item = value,
                               flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
             else:



More information about the grass-commit mailing list