[GRASS-SVN] r60984 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 26 09:34:13 PDT 2014
Author: annakrat
Date: 2014-06-26 09:34:13 -0700 (Thu, 26 Jun 2014)
New Revision: 60984
Modified:
grass/trunk/gui/wxpython/gui_core/prompt.py
Log:
wxGUI/prompt: fix crashing on Mac with wxPython3
Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py 2014-06-26 16:13:12 UTC (rev 60983)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py 2014-06-26 16:34:13 UTC (rev 60984)
@@ -177,7 +177,8 @@
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPressed)
self.Bind(wx.stc.EVT_STC_AUTOCOMP_SELECTION, self.OnItemSelected)
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemChanged)
- self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
+ if sys.platform != 'darwin': # unstable on Mac with wxPython 3
+ self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
# signal which requests showing of a notification
self.showNotification = Signal('GPromptSTC.showNotification')
More information about the grass-commit
mailing list