[GRASS-SVN] r36835 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 21 06:06:41 EDT 2009
Author: martinl
Date: 2009-04-21 06:06:40 -0400 (Tue, 21 Apr 2009)
New Revision: 36835
Modified:
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: update dialog properties on show
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-04-21 09:40:47 UTC (rev 36834)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-04-21 10:06:40 UTC (rev 36835)
@@ -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