[GRASS-SVN] r47555 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 11 15:21:47 EDT 2011
Author: cmbarton
Date: 2011-08-11 12:21:47 -0700 (Thu, 11 Aug 2011)
New Revision: 47555
Modified:
grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
Make children controls of wx.StaticBox usable on Mac.
Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py 2011-08-11 10:59:15 UTC (rev 47554)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py 2011-08-11 19:21:47 UTC (rev 47555)
@@ -846,6 +846,8 @@
def _createVectorAttrb(self, parent):
"""!Create part of dialog with layer/column selection"""
+ inputBox = wx.StaticBox(parent = parent, id = wx.ID_ANY,
+ label = " %s " % _("Select vector columns"))
cb_vl_label = wx.StaticText(parent, id = wx.ID_ANY,
label = _('Layer:'))
cb_vc_label = wx.StaticText(parent, id = wx.ID_ANY,
@@ -861,8 +863,6 @@
self.btn_add_RGB.SetToolTipString(_("Add GRASSRGB column to current attribute table."))
# layout
- inputBox = wx.StaticBox(parent = parent, id = wx.ID_ANY,
- label = " %s " % _("Select vector columns"))
inputSizer = wx.StaticBoxSizer(inputBox, wx.VERTICAL)
vSizer = wx.GridBagSizer(hgap = 5, vgap = 5)
vSizer.Add(cb_vl_label, pos = (0, 0),
@@ -1427,6 +1427,8 @@
def _createVectorAttrb(self, parent):
"""!Create part of dialog with layer/column selection"""
+ inputBox = wx.StaticBox(parent = parent, id = wx.ID_ANY,
+ label = " %s " % _("Select vector columns"))
layer_label = wx.StaticText(parent, id = wx.ID_ANY, label = _('Layer:'))
self.rgb_check = wx.CheckBox(parent, id = wx.ID_ANY, label = _('Use color for thematic mapping:'))
if self.vectorType == 'points':
@@ -1471,8 +1473,6 @@
self.btn_add_size.SetToolTipString(label)
# layout
- inputBox = wx.StaticBox(parent = parent, id = wx.ID_ANY,
- label = " %s " % _("Select vector columns"))
inputSizer = wx.StaticBoxSizer(inputBox, wx.VERTICAL)
vSizer = wx.GridBagSizer(hgap = 5, vgap = 5)
vSizer.AddGrowableCol(2)
More information about the grass-commit
mailing list