[GRASS-SVN] r48698 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 9 18:14:11 EDT 2011
Author: martinl
Date: 2011-10-09 15:14:11 -0700 (Sun, 09 Oct 2011)
New Revision: 48698
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: fix OnModelNew()
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py 2011-10-09 21:50:17 UTC (rev 48697)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py 2011-10-09 22:14:11 UTC (rev 48698)
@@ -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
@@ -3911,6 +3913,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