[GRASS-SVN] r51720 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 13:19:03 EDT 2012


Author: martinl
Date: 2012-05-24 10:19:02 -0700 (Thu, 24 May 2012)
New Revision: 51720

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


Modified: grass/trunk/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/manager.py	2012-05-24 17:12:27 UTC (rev 51719)
+++ grass/trunk/gui/wxpython/dbmgr/manager.py	2012-05-24 17:19:02 UTC (rev 51720)
@@ -2507,7 +2507,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
@@ -2742,7 +2742,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