[GRASS-SVN] r48699 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 9 18:17:56 EDT 2011
Author: martinl
Date: 2011-10-09 15:17:56 -0700 (Sun, 09 Oct 2011)
New Revision: 48699
Modified:
grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: fix OnModelNew()
(merge r48698 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-09 22:14:11 UTC (rev 48698)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-09 22:17:56 UTC (rev 48699)
@@ -926,6 +926,8 @@
self.canvas.GetDiagram().DeleteAllShapes()
self.model.Reset()
self.canvas.Refresh()
+ self.itemPanel.Update()
+ self.variablePanel.Reset()
# no model file loaded
self.modelFile = None
@@ -3905,6 +3907,11 @@
"""!Reload list of variables"""
self.list.OnReload(None)
+ def Reset(self):
+ """!Remove all variables"""
+ self.list.DeleteAllItems()
+ self.parent.GetModel().SetVariables([])
+
class VariableListCtrl(ModelListCtrl):
def __init__(self, parent, columns, **kwargs):
"""!List of model variables"""
More information about the grass-commit
mailing list