X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/demo/StyledTextCtrl_2.py diff --git a/wxPython/demo/StyledTextCtrl_2.py b/wxPython/demo/StyledTextCtrl_2.py index 788f815a34..2c043c9155 100644 --- a/wxPython/demo/StyledTextCtrl_2.py +++ b/wxPython/demo/StyledTextCtrl_2.py @@ -26,6 +26,14 @@ if wx.Platform == '__WXMSW__': 'size' : 10, 'size2': 8, } +elif wx.Platform == '__WXMAC__': + faces = { 'times': 'Times New Roman', + 'mono' : 'Courier New', + 'helv' : 'Arial', + 'other': 'Comic Sans MS', + 'size' : 12, + 'size2': 10, + } else: faces = { 'times': 'Times', 'mono' : 'Courier', @@ -177,7 +185,7 @@ class PythonSTC(stc.StyledTextCtrl): def OnKeyPressed(self, event): if self.CallTipActive(): self.CallTipCancel() - key = event.KeyCode() + key = event.GetKeyCode() if key == 32 and event.ControlDown(): pos = self.GetCurrentPos()