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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 5 12:42:29 EDT 2011


Author: martinl
Date: 2011-09-05 09:42:29 -0700 (Mon, 05 Sep 2011)
New Revision: 48138

Modified:
   grass/trunk/gui/wxpython/gui_modules/ghelp.py
   grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: define focus for ModelSearchDialog


Modified: grass/trunk/gui/wxpython/gui_modules/ghelp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/ghelp.py	2011-09-05 16:37:15 UTC (rev 48137)
+++ grass/trunk/gui/wxpython/gui_modules/ghelp.py	2011-09-05 16:42:29 UTC (rev 48138)
@@ -206,6 +206,8 @@
         """!Reset widget"""
         self.searchBy.SetSelection(0)
         self.search.SetValue('')
+        if self.showTip:
+            self.searchTip.SetLabel('')
         
 class MenuTreeWindow(wx.Panel):
     """!Show menu tree"""

Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-09-05 16:37:15 UTC (rev 48137)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-09-05 16:42:29 UTC (rev 48138)
@@ -2482,6 +2482,7 @@
         self.search.Reset()
         self.cmd_prompt.OnCmdErase(None)
         self.btnOk.Enable(False)
+        self.cmd_prompt.SetFocus()
 
 class ModelRelation(ogl.LineShape):
     """!Data - action relation"""



More information about the grass-commit mailing list