瀏覽代碼

gui_core: add label in StaticWrapText widget used by SearchModuleWidget (fix for https://trac.osgeo.org/grass/ticket/3402)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71439 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 7 年之前
父節點
當前提交
6e62468793
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_core/widgets.py

+ 2 - 2
gui/wxpython/gui_core/widgets.py

@@ -1088,7 +1088,7 @@ class SearchModuleWidget(wx.Panel):
 
 
         if self._showTip:
         if self._showTip:
             self._searchTip = StaticWrapText(parent=self, id=wx.ID_ANY,
             self._searchTip = StaticWrapText(parent=self, id=wx.ID_ANY,
-                                             size=(-1, 35))
+                                  label="Choose a module", size=(-1, 35))
 
 
         if self._showChoice:
         if self._showChoice:
             self._searchChoice = wx.Choice(parent=self, id=wx.ID_ANY)
             self._searchChoice = wx.Choice(parent=self, id=wx.ID_ANY)
@@ -1199,7 +1199,7 @@ class SearchModuleWidget(wx.Panel):
         """Reset widget"""
         """Reset widget"""
         self._search.SetValue('')
         self._search.SetValue('')
         if self._showTip:
         if self._showTip:
-            self._searchTip.SetLabel('')
+            self._searchTip.SetLabel('Choose a module')
 
 
 
 
 class ManageSettingsWidget(wx.Panel):
 class ManageSettingsWidget(wx.Panel):