[GRASS-SVN] r60985 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 26 09:36:21 PDT 2014
Author: annakrat
Date: 2014-06-26 09:36:21 -0700 (Thu, 26 Jun 2014)
New Revision: 60985
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py
Log:
wxGUI/prompt: fix crashing on Mac with wxPython3 (merge from trunk, r60984)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py 2014-06-26 16:34:13 UTC (rev 60984)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py 2014-06-26 16:36:21 UTC (rev 60985)
@@ -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