[GRASS-SVN] r64665 - grass/trunk/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 17 12:46:37 PST 2015
Author: annakrat
Date: 2015-02-17 12:46:37 -0800 (Tue, 17 Feb 2015)
New Revision: 64665
Modified:
grass/trunk/gui/wxpython/animation/g.gui.animation.py
Log:
wxGUI/animation: fix crash with wxPython 3 when starting with parameter
Modified: grass/trunk/gui/wxpython/animation/g.gui.animation.py
===================================================================
--- grass/trunk/gui/wxpython/animation/g.gui.animation.py 2015-02-17 20:44:20 UTC (rev 64664)
+++ grass/trunk/gui/wxpython/animation/g.gui.animation.py 2015-02-17 20:46:37 UTC (rev 64665)
@@ -128,7 +128,8 @@
frame.CentreOnScreen()
frame.Show()
if len(layerList) >= 1:
- frame.SetAnimations([layerList] + [None] * (MAX_COUNT - 1))
+ # CallAfter added since it was crashing with wxPython 3 gtk
+ wx.CallAfter(frame.SetAnimations, [layerList] + [None] * (MAX_COUNT - 1))
app.MainLoop()
if __name__ == '__main__':
More information about the grass-commit
mailing list