[GRASS-SVN] r58520 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 24 04:14:39 PST 2013
Author: martinl
Date: 2013-12-24 04:14:39 -0800 (Tue, 24 Dec 2013)
New Revision: 58520
Modified:
grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI: fix usage GraphicalModelerGrassInterface for property dialogs
Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py 2013-12-24 12:11:45 UTC (rev 58519)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py 2013-12-24 12:14:39 UTC (rev 58520)
@@ -675,8 +675,10 @@
self.GetOptData(dcmd = action.GetLog(string = False), layer = action,
params = action.GetParams(), propwin = None)
else:
- GUI(parent = self, show = True).ParseCommand(action.GetLog(string = False),
- completed = (self.GetOptData, action, action.GetParams()))
+ gmodule = GUI(parent = self, show = True,
+ giface = GraphicalModelerGrassInterface(self.model))
+ gmodule.ParseCommand(action.GetLog(string = False),
+ completed = (self.GetOptData, action, action.GetParams()))
elif win and not win.IsShown():
win.Show()
@@ -1110,8 +1112,8 @@
if isinstance(shape, ModelAction):
gmodule = GUI(parent = self.frame, show = True,
giface = GraphicalModelerGrassInterface(self.frame.GetModel()))
- module = gmodule.ParseCommand(shape.GetLog(string = False),
- completed = (self.frame.GetOptData, shape, shape.GetParams()))
+ gmodule.ParseCommand(shape.GetLog(string = False),
+ completed = (self.frame.GetOptData, shape, shape.GetParams()))
elif isinstance(shape, ModelData):
dlg = ModelDataDialog(parent = self.frame, shape = shape)
More information about the grass-commit
mailing list