[prev in list] [next in list] [prev in thread] [next in thread]
List: grass-commit
Subject: [GRASS-SVN] r49007 - grass/trunk/gui/wxpython/gui_modules
From: svn_grass () osgeo ! org
Date: 2011-10-30 17:32:47
Message-ID: 20111030173247.53A3739039B () trac ! osgeo ! org
[Download RAW message or body]
Author: martinl
Date: 2011-10-30 10:32:47 -0700 (Sun, 30 Oct 2011)
New Revision: 49007
Modified:
grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI: fix indeces of dialog pages
Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-30 17:28:31 UTC (rev 49006)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-30 17:32:47 UTC (rev 49007)
@@ -685,7 +685,7 @@
params = list()
result["variables"] = { 'flags' : list(),
'params' : params,
- 'idx' : idx }
+ 'idx' : idx }
for name, values in self.variables.iteritems():
gtype = values.get('type', 'string')
if gtype in ('raster', 'vector', 'mapset', 'file'):
@@ -741,7 +741,8 @@
'params': list(),
'idx' : idx }
result[name]['params'].append(p)
- idx += 1
+ if name in result:
+ idx += 1
self.variablesParams = result # record parameters
@@ -3887,7 +3888,7 @@
"""!Create for each parameterized module its own page"""
nameOrdered = [''] * len(self.params.keys())
for name, params in self.params.iteritems():
- nameOrdered[params['idx']] = name
+ nameOrdered[params['idx']] = name
for name in nameOrdered:
params = self.params[name]
panel = self._createPage(name, params)
_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic