[GRASS-SVN] r59785 - grass/branches/releasebranch_6_4/gui/wxpython/wxplot
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 18 08:34:05 PDT 2014
Author: annakrat
Date: 2014-04-18 08:34:04 -0700 (Fri, 18 Apr 2014)
New Revision: 59785
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/wxplot/dialogs.py
grass/branches/releasebranch_6_4/gui/wxpython/wxplot/profile.py
Log:
wxGUI/wxplot: fix a few issues related to wxPython 3 (relevant parts merged from trunk, r59783)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxplot/dialogs.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxplot/dialogs.py 2014-04-18 15:25:15 UTC (rev 59784)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxplot/dialogs.py 2014-04-18 15:34:04 UTC (rev 59785)
@@ -98,8 +98,7 @@
def OnSelection(self, event):
"""!Choose maps to profile. Convert these into a list
"""
- self.rasterList = []
- self.rasterList = event.GetString().split(',')
+ self.rasterList = self.FindWindowById(event.GetId()).GetValue().split(',')
class PlotStatsFrame(wx.Frame):
def __init__(self, parent, id, message = '', title = '',
Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxplot/profile.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxplot/profile.py 2014-04-18 15:25:15 UTC (rev 59784)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxplot/profile.py 2014-04-18 15:34:04 UTC (rev 59785)
@@ -105,7 +105,7 @@
"""!Select raster map(s) to profile
"""
dlg = ProfileRasterDialog(parent = self)
-
+ dlg.CenterOnParent()
if dlg.ShowModal() == wx.ID_OK:
self.rasterList = dlg.rasterList
self.raster = self.InitRasterOpts(self.rasterList, self.plottype)
More information about the grass-commit
mailing list