[GRASS-SVN] r55679 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 10 05:05:31 PDT 2013
Author: annakrat
Date: 2013-04-10 05:05:30 -0700 (Wed, 10 Apr 2013)
New Revision: 55679
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: quick fix for import dialog for wxPython 2.9.4
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2013-04-10 10:09:33 UTC (rev 55678)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2013-04-10 12:05:30 UTC (rev 55679)
@@ -1540,14 +1540,17 @@
def OnSetType(self, event, sel = None):
- """!Datasource type changed"""
+ """!Datasource type changed.
+
+ @todo improve showing/hiding widgets
+ """
if event:
sel = event.GetSelection()
else:
self.source.SetSelection(sel)
win = self.input[self.dsnType][1]
if win:
- self.dsnSizer.Remove(win)
+ self.dsnSizer.Detach(win)
win.Hide()
if sel == self.sourceMap['file']: # file
@@ -1764,7 +1767,7 @@
return
win = self.input[self.dsnType][1]
- self.dsnSizer.Remove(win)
+ self.dsnSizer.Detach(win)
if self.dsnType == 'file':
win.Destroy()
More information about the grass-commit
mailing list