[GRASS-SVN] r57992 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 14 01:45:26 PDT 2013


Author: martinl
Date: 2013-10-14 01:45:26 -0700 (Mon, 14 Oct 2013)
New Revision: 57992

Modified:
   grass/trunk/gui/wxpython/gui_core/menu.py
Log:
wxGUI/search module: add help text


Modified: grass/trunk/gui/wxpython/gui_core/menu.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/menu.py	2013-10-14 07:52:11 UTC (rev 57991)
+++ grass/trunk/gui/wxpython/gui_core/menu.py	2013-10-14 08:45:26 UTC (rev 57992)
@@ -142,6 +142,10 @@
         self._search.showSearchResult.connect(lambda result: self._tree.Select(result))
         self._search.showNotification.connect(self.showNotification)
         
+        self._helpText = wx.StaticText(parent=self, id=wx.ID_ANY,
+                                       label="Press Enter for next match, Ctrl+Enter to run command")
+        self._helpText.SetForegroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_GRAYTEXT))
+        
         # buttons
         self._btnRun = wx.Button(self, id=wx.ID_OK, label=_("&Run"))
         self._btnRun.SetToolTipString(_("Run selected module from the tree"))
@@ -179,6 +183,9 @@
         sizer.Add(item = btnSizer, proportion = 0,
                   flag = wx.ALIGN_RIGHT | wx.BOTTOM | wx.RIGHT, border = 5)
         
+        sizer.Add(item=self._helpText,
+                  proportion=0, flag=wx.EXPAND | wx.LEFT, border=5)
+        
         sizer.Fit(self)
         sizer.SetSizeHints(self)
         



More information about the grass-commit mailing list