فهرست منبع

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):