[GRASS-SVN] r55704 - grass/trunk/gui/wxpython/mapswipe
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 11 08:13:38 PDT 2013
Author: annakrat
Date: 2013-04-11 08:13:37 -0700 (Thu, 11 Apr 2013)
New Revision: 55704
Modified:
grass/trunk/gui/wxpython/mapswipe/frame.py
Log:
wxGUI/mapswipe: various fixes for wx 2.9
Modified: grass/trunk/gui/wxpython/mapswipe/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapswipe/frame.py 2013-04-11 14:40:11 UTC (rev 55703)
+++ grass/trunk/gui/wxpython/mapswipe/frame.py 2013-04-11 15:13:37 UTC (rev 55704)
@@ -69,8 +69,6 @@
self._mode = 'swipe'
- self.splitter.SplitVertically(self.firstMapWindow, self.secondMapWindow, 0)
-
self._addPanes()
self._bindWindowsActivation()
@@ -133,6 +131,8 @@
def CallAfterInit(self):
self.InitSliderBindings()
+ self.splitter.SplitVertically(self.firstMapWindow, self.secondMapWindow, 0)
+ self.splitter.Init()
if not (self.rasters['first'] and self.rasters['second']):
self.OnSelectRasters(event = None)
@@ -326,6 +326,7 @@
def OnSelectRasters(self, event):
"""!Choose raster maps and rerender."""
dlg = SwipeMapDialog(self, first = self.rasters['first'], second = self.rasters['second'])
+ dlg.CentreOnParent()
if dlg.ShowModal() == wx.ID_OK:
maps = dlg.GetValues()
res1 = self.SetFirstRaster(name = maps[0])
@@ -572,7 +573,6 @@
self.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGED, self.OnSashChanged)
self.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGING, self.OnSashChanging)
self._moveSash = True
- wx.CallAfter(self.Init)
def EnableSash(self, enable):
self._moveSash = enable
More information about the grass-commit
mailing list