[GRASS-SVN] r64666 - grass/branches/releasebranch_7_0/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 17 12:48:00 PST 2015
Author: annakrat
Date: 2015-02-17 12:48:00 -0800 (Tue, 17 Feb 2015)
New Revision: 64666
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.py
Log:
wxGUI/animation: fix crash with wxPython 3 when starting with parameter (merge from trunk, r64665)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.py 2015-02-17 20:46:37 UTC (rev 64665)
+++ grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.py 2015-02-17 20:48:00 UTC (rev 64666)
@@ -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