[GRASS-SVN] r56216 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 12 06:12:15 PDT 2013
Author: martinl
Date: 2013-05-12 06:12:15 -0700 (Sun, 12 May 2013)
New Revision: 56216
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: fix TaskFrame - goutput can be None
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2013-05-12 12:28:50 UTC (rev 56215)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2013-05-12 13:12:15 UTC (rev 56216)
@@ -452,11 +452,12 @@
self.notebookpanel = CmdPanel(parent = self.panel, giface = self._giface, task = self.task,
frame = self)
self._gconsole = self.notebookpanel._gconsole
- self.goutput = self.notebookpanel.goutput
if self._gconsole:
self._gconsole.mapCreated.connect(self.OnMapCreated)
- self.goutput.showNotification.connect(lambda message: self.SetStatusText(message))
-
+ self.goutput = self.notebookpanel.goutput
+ if self.goutput:
+ self.goutput.showNotification.connect(lambda message: self.SetStatusText(message))
+
self.notebookpanel.OnUpdateValues = self.updateValuesHook
guisizer.Add(item = self.notebookpanel, proportion = 1, flag = wx.EXPAND)
More information about the grass-commit
mailing list