[GRASS-SVN] r47473 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 7 05:55:31 EDT 2011


Author: martinl
Date: 2011-08-07 02:55:31 -0700 (Sun, 07 Aug 2011)
New Revision: 47473

Modified:
   grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
wxGUI/colortable: no need to set `label= _('')`


Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py	2011-08-07 09:45:58 UTC (rev 47472)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py	2011-08-07 09:55:31 UTC (rev 47473)
@@ -143,7 +143,7 @@
         else:
             self.inmap = self.parent.GetLayerData(nvizType = 'vector', nameOnly = True)
             self.OnSelectionInput(None)
-            self.nvizInfo.SetLabel(_("Set color rules for vector map %s:") % self.inmap)
+            self.nvizInfo.SetLabel(_("Set color rules for vector map <%s>:") % self.inmap)
             
         self.SetMinSize(self.GetSize())
         
@@ -280,32 +280,28 @@
     def __doLayout(self):
         """!Do main layout"""
         sizer = wx.BoxSizer(wx.VERTICAL)
-        #
+        
         # map selection
-        #
         mapSelection = self._createMapSelection()
         sizer.Add(item = mapSelection, proportion = 0,
                   flag = wx.ALL | wx.EXPAND, border = 5)
         if self.nviz:
             sizerNviz = wx.BoxSizer(wx.HORIZONTAL)
-            self.nvizInfo = wx.StaticText(parent = self, id = wx.ID_ANY,
-                                 label = _('')) # set later
+            self.nvizInfo = wx.StaticText(parent = self, id = wx.ID_ANY) # set later
             sizerNviz.Add(self.nvizInfo, proportion = 0, flag = wx.LEFT | wx.EXPAND, border = 0)
             sizer.Add(item = sizerNviz, proportion = 0,
                   flag = wx.LEFT | wx.BOTTOM | wx.EXPAND, border = 5)
             sizer.Hide(mapSelection)
             # doesn't work
             sizer.Layout()
-        #
+        
         # set vector attributes
-        #
         if not self.raster:
             vectorAttrb = self._createVectorAttrb()
             sizer.Add(item = vectorAttrb, proportion = 0,
                       flag = wx.ALL | wx.EXPAND, border = 5)
-        #
+        
         # body & preview
-        #
         bodySizer =  wx.GridBagSizer(hgap = 5, vgap = 5)
         row = 0
         
@@ -353,9 +349,8 @@
         
         sizer.Add(item = bodySizer, proportion = 1,
                   flag = wx.ALL | wx.EXPAND, border = 5)
-        #
+        
         # buttons
-        #
         btnSizer = self._createButtons()
         
         sizer.Add(item = wx.StaticLine(parent = self, id = wx.ID_ANY,



More information about the grass-commit mailing list