Переглянути джерело

wxGUI: attempt to get rid of CGContextRestoreGState on Mac (see wxWidgets ticket 4272)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51089 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 роки тому
батько
коміт
f9ec867560
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      gui/wxpython/gui_core/goutput.py
  2. 1 1
      gui/wxpython/gui_core/prompt.py

+ 1 - 1
gui/wxpython/gui_core/goutput.py

@@ -1058,7 +1058,7 @@ class GMStc(wx.stc.StyledTextCtrl):
         """!Copy selected text to clipboard and skip event.
         """!Copy selected text to clipboard and skip event.
         The same function is in TextCtrlAutoComplete class (prompt.py).
         The same function is in TextCtrlAutoComplete class (prompt.py).
         """
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         event.Skip()
         
         
     def SetStyle(self):
     def SetStyle(self):

+ 1 - 1
gui/wxpython/gui_core/prompt.py

@@ -728,7 +728,7 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
         """!Copy selected text to clipboard and skip event.
         """!Copy selected text to clipboard and skip event.
         The same function is in GMStc class (goutput.py).
         The same function is in GMStc class (goutput.py).
         """
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         event.Skip()
         
         
     def OnItemChanged(self, event):
     def OnItemChanged(self, event):