|
@@ -1358,15 +1358,15 @@ class MapFrame(SingleMapFrame):
|
|
|
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)
|
|
|
+ GError(_("Extension <%s> not available, run '%s' to install it.") % \
|
|
|
+ ('wx.vnet', 'g.extension -s extension=wx.vnet'),
|
|
|
+ parent = self, showTraceback = False)
|
|
|
return
|
|
|
|
|
|
self.dialogs['vnet'] = VNETDialog(parent = self)
|
|
|
self.dialogs['vnet'].CenterOnScreen()
|
|
|
self.dialogs['vnet'].Show()
|
|
|
-
|
|
|
+
|
|
|
def SwitchTool(self, toolbar, event):
|
|
|
"""!Calls UpdateTools to manage connected toolbars"""
|
|
|
self.UpdateTools(event)
|