[GRASS-SVN] r36837 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 21 06:14:55 EDT 2009
Author: martinl
Date: 2009-04-21 06:14:55 -0400 (Tue, 21 Apr 2009)
New Revision: 36837
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: update dialog properties on show
(merge from trunk, r36835)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py 2009-04-21 10:09:42 UTC (rev 36836)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py 2009-04-21 10:14:55 UTC (rev 36837)
@@ -811,10 +811,13 @@
if self.GetPyData(layer)[0].has_key('propwin') and \
self.GetPyData(layer)[0]['propwin'] is not None:
# recycle GUI dialogs
- if self.GetPyData(layer)[0]['propwin'].IsShown():
- self.GetPyData(layer)[0]['propwin'].SetFocus()
+ win = self.GetPyData(layer)[0]['propwin']
+ # update properties (columns, layers)
+ win.notebookpanel.OnUpdateSelection(None)
+ if win.IsShown():
+ win.SetFocus()
else:
- self.GetPyData(layer)[0]['propwin'].Show()
+ win.Show()
return
More information about the grass-commit
mailing list