[GRASS-SVN] r42127 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 5 15:24:07 EDT 2010
Author: martinl
Date: 2010-05-05 15:24:06 -0400 (Wed, 05 May 2010)
New Revision: 42127
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: backport flags info label
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2010-05-05 16:45:08 UTC (rev 42126)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2010-05-05 19:24:06 UTC (rev 42127)
@@ -1115,16 +1115,21 @@
else:
title = text_beautify( f['description'] )
tooltip = None
+ title_sizer = wx.BoxSizer(wx.HORIZONTAL)
+ rtitle_txt = wx.StaticText(parent=which_panel,
+ label = '(' + f['name'] + ')')
chk = wx.CheckBox(parent=which_panel, label = title, style = wx.NO_BORDER)
self.label_id.append(chk.GetId())
if tooltip:
chk.SetToolTipString(tooltip)
if 'value' in f:
chk.SetValue( f['value'] )
- # chk.SetFont(wx.Font(pointSize=fontsize, family=wx.FONTFAMILY_DEFAULT,
- # style=wx.NORMAL, weight=text_style))
- which_sizer.Add( item=chk, proportion=0,
- flag=wx.EXPAND | wx.TOP | wx.LEFT | wx.RIGHT, border=5)
+ title_sizer.Add(item=chk, proportion=1,
+ flag=wx.EXPAND)
+ title_sizer.Add(item=rtitle_txt, proportion=0,
+ flag=wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL)
+ which_sizer.Add(item=title_sizer, proportion=0,
+ flag=wx.EXPAND | wx.TOP | wx.LEFT | wx.RIGHT, border=5)
f['wxId'] = chk.GetId()
chk.Bind(wx.EVT_CHECKBOX, self.OnSetValue)
if f['name'] in ('verbose', 'quiet'):
More information about the grass-commit
mailing list