[GRASS-SVN] r52389 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 16 15:10:03 PDT 2012
Author: martinl
Date: 2012-07-16 15:10:02 -0700 (Mon, 16 Jul 2012)
New Revision: 52389
Modified:
grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: better check for wx.vnet
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2012-07-16 22:05:00 UTC (rev 52388)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2012-07-16 22:10:02 UTC (rev 52389)
@@ -1329,7 +1329,14 @@
if self.dialogs['vnet']:
return
else:
- from vnet.dialogs import VNETDialog
+ try:
+ from vnet.dialogs import VNETDialog
+ except ImportError:
+ GError(_("wx.vnet not available, run '%s' to install this "
+ "extension") % 'g.extension -s extension=wx.vnet',
+ parent = self)
+ return
+
self.dialogs['vnet'] = VNETDialog(parent = self)
self.dialogs['vnet'].CenterOnScreen()
self.dialogs['vnet'].Show()
More information about the grass-commit
mailing list