[GRASS-SVN] r58737 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 17 04:24:52 PST 2014


Author: martinl
Date: 2014-01-17 04:24:52 -0800 (Fri, 17 Jan 2014)
New Revision: 58737

Modified:
   grass/trunk/gui/wxpython/iclass/plots.py
Log:
wxGUI/iclass: error message (no matplotlib) cosmetics

Modified: grass/trunk/gui/wxpython/iclass/plots.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/plots.py	2014-01-17 12:17:40 UTC (rev 58736)
+++ grass/trunk/gui/wxpython/iclass/plots.py	2014-01-17 12:24:52 UTC (rev 58737)
@@ -80,9 +80,9 @@
             self.mainSizer.Add(self.iscatt_panel, proportion = 1, flag = wx.EXPAND, border = 0)
             self.iscatt_panel.Hide()
         except ImportError as e:
-            self.scatt_error = _("Scatter plot functionality is disabled. Reason:\n" \
+            self.scatt_error = _("Scatter plot functionality is disabled.\n\nReason: " \
                                  "Unable to import packages needed for scatter plot.\n%s" % e)
-            GError(self.scatt_error)
+            wx.CallAfter(GError, self.scatt_error, showTraceback=False, parent=self)
             self.iscatt_panel = None
 
     def OnPlotTypeSelected(self, event):



More information about the grass-commit mailing list