[GRASS-SVN] r54039 - grass/trunk/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 25 23:47:57 PST 2012
Author: wenzeslaus
Date: 2012-11-25 23:47:56 -0800 (Sun, 25 Nov 2012)
New Revision: 54039
Modified:
grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI/InstallExtensionWindow: show notification in statusbar (before: event propagated into Layer Manager)
Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py 2012-11-26 07:38:20 UTC (rev 54038)
+++ grass/trunk/gui/wxpython/modules/extensions.py 2012-11-26 07:47:56 UTC (rev 54039)
@@ -33,6 +33,7 @@
from core import globalvar
from core.gcmd import GError, RunCommand
from core.utils import SetAddOnPath
+from core.events import EVT_SHOW_NOTIFICATION
from gui_core.forms import GUI
from gui_core.widgets import ItemTree, GListCtrl, SearchModuleWidget, EVT_MODULE_SELECTED
@@ -201,6 +202,11 @@
self.search.Bind(wx.EVT_TEXT_ENTER, self.OnShowItem)
self.search.Bind(wx.EVT_TEXT, self.OnUpdateStatusBar)
+ # show text in statusbar when notification command event occurs
+ # propagation stops here, no need to show text twice
+ self.Bind(EVT_SHOW_NOTIFICATION,
+ lambda event: self.SetStatusText(event.message))
+
self._layout()
def _layout(self):
More information about the grass-commit
mailing list