[GRASS-SVN] r50708 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 7 08:13:35 EST 2012
Author: martinl
Date: 2012-02-07 05:13:35 -0800 (Tue, 07 Feb 2012)
New Revision: 50708
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: fix update dialog (reset value for bind'ed widgets)
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2012-02-07 12:30:17 UTC (rev 50707)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2012-02-07 13:13:35 UTC (rev 50708)
@@ -212,6 +212,9 @@
continue
name = win.GetName()
+ pBind = self.task.get_param(uid, element = 'wxId', raiseError = False)
+ if pBind:
+ pBind['value'] = ''
map = layer = None
driver = db = table = None
@@ -302,9 +305,7 @@
self.data[win.InsertTableColumns] = { 'table' : pTable.get('value') }
elif name == 'SubGroupSelect':
- pGroup = self.task.get_param('group', element = 'element', raiseError = False)
- if pGroup:
- self.data[win.Insert] = { 'group' : pGroup.get('value', '')}
+ self.data[win.Insert] = { 'group' : p.get('value', '')}
elif name == 'LocationSelect':
pDbase = self.task.get_param('dbase', element = 'element', raiseError = False)
@@ -1860,7 +1861,7 @@
myId = event.GetId()
me = wx.FindWindowById(myId)
name = me.GetName()
-
+
found = False
for porf in self.task.params + self.task.flags:
if 'wxId' not in porf:
@@ -1878,7 +1879,7 @@
porf['parameterized'] = me.IsChecked()
else:
porf['value'] = me.GetValue()
-
+
self.OnUpdateValues(event)
event.Skip()
More information about the grass-commit
mailing list