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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 2 04:23:33 EDT 2008


Author: martinl
Date: 2008-09-02 04:23:33 -0400 (Tue, 02 Sep 2008)
New Revision: 33205

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI dialog layout cosmetics
(merge from devbr6, r33204)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-09-02 08:18:58 UTC (rev 33204)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-09-02 08:23:33 UTC (rev 33205)
@@ -1045,13 +1045,15 @@
                                 maxValue = 1e6
                             txt2 = wx.SpinCtrl(parent=which_panel, id=wx.ID_ANY, size=globalvar.DIALOG_SPIN_SIZE,
                                                min=minValue, max=maxValue)
+                            style = wx.BOTTOM | wx.LEFT
                         else:
-                            txt2 = wx.TextCtrl(parent=which_panel, value = p.get('default',''),
-                                               size=globalvar.DIALOG_TEXTCTRL_SIZE)
+                            txt2 = wx.TextCtrl(parent=which_panel, value = p.get('default',''))
+                            style = wx.EXPAND | wx.BOTTOM | wx.LEFT
+                        
                         if p.get('value','') != '':
                             txt2.SetValue(p['value']) # parameter previously set
                         which_sizer.Add(item=txt2, proportion=0,
-                                        flag=wx.EXPAND | wx.BOTTOM | wx.LEFT, border=5)
+                                        flag=style, border=5)
 
                         p['wxId'] = txt2.GetId()
                         txt2.Bind(wx.EVT_TEXT, self.OnSetValue)
@@ -1085,8 +1087,8 @@
                 if p.get('multiple','yes') == 'yes' or \
                         p.get('type', 'string') in ('string', 'float') or \
                         len(p.get('key_desc', [])) > 1:
-                    txt3 = wx.TextCtrl(parent=which_panel, value = p.get('default',''),
-                                       size=globalvar.DIALOG_TEXTCTRL_SIZE)
+                    txt3 = wx.TextCtrl(parent=which_panel, value = p.get('default',''))
+                    
                     if p.get('value','') != '':
                         txt3.SetValue(str(p['value'])) # parameter previously set
 



More information about the grass-commit mailing list