[GRASS-SVN] r37628 - in grass/trunk/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 30 12:34:11 EDT 2009


Author: martinl
Date: 2009-05-30 12:34:11 -0400 (Sat, 30 May 2009)
New Revision: 37628

Modified:
   grass/trunk/gui/wxpython/gui_modules/prompt.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: layout cosmetics


Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py	2009-05-30 16:28:29 UTC (rev 37627)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py	2009-05-30 16:34:11 UTC (rev 37628)
@@ -55,12 +55,13 @@
         self.searchBy = wx.Choice(parent = cmdprompt, id = wx.ID_ANY,
                              choices = [_("description"),
                                         _("keywords")])
-        
+        winHeight = self.searchBy.GetSize()[1]
+
         self.search = wx.TextCtrl(parent = cmdprompt, id = wx.ID_ANY,
                              value = "", size = (-1, 25))
         
         label = wx.Button(parent = cmdprompt, id = wx.ID_ANY,
-                          label = _("Cmd >"), size = (-1, 25))
+                          label = _("Cmd >"), size = (-1, winHeight))
         label.SetToolTipString(_("Click for erasing command prompt"))
 
         ### todo: fix TextCtrlAutoComplete to work also on Macs
@@ -69,7 +70,7 @@
             cmdinput = TextCtrlAutoComplete(parent = cmdprompt, id = wx.ID_ANY,
                                             value = "",
                                             style = wx.TE_LINEWRAP | wx.TE_PROCESS_ENTER,
-                                            size = (-1, 25))
+                                            size = (-1, winHeight))
         except NotImplementedError:
             # wx.PopupWindow may be not available in wxMac
             # see http://trac.wxwidgets.org/ticket/9377

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2009-05-30 16:28:29 UTC (rev 37627)
+++ grass/trunk/gui/wxpython/wxgui.py	2009-05-30 16:34:11 UTC (rev 37628)
@@ -146,7 +146,7 @@
                              Left().CentrePane().BestSize((-1,-1)).Dockable(False).
                              CloseButton(False).DestroyOnClose(True).Row(1).Layer(0))
         self._auimgr.AddPane(self.cmdprompt, wx.aui.AuiPaneInfo().
-                             Bottom().BestSize((-1, 60)).Dockable(False).
+                             Bottom().BestSize((-1, 65)).Dockable(False).
                              CloseButton(False).DestroyOnClose(True).
                              PaneBorder(False).Row(1).Layer(0).Position(0).
                              CaptionVisible(False))



More information about the grass-commit mailing list