projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed non-existing richedit.dmc
[wxWidgets.git]
/
wxPython
/
demo
/
StyledTextCtrl_2.py
diff --git
a/wxPython/demo/StyledTextCtrl_2.py
b/wxPython/demo/StyledTextCtrl_2.py
index 788f815a3456ce0f7d4581b9b85b3a16982a82c2..2c043c9155e9bcd5ebe0f1b4cda87f5ea4a7cf15 100644
(file)
--- a/
wxPython/demo/StyledTextCtrl_2.py
+++ b/
wxPython/demo/StyledTextCtrl_2.py
@@
-26,6
+26,14
@@
if wx.Platform == '__WXMSW__':
'size' : 10,
'size2': 8,
}
'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',
else:
faces = { 'times': 'Times',
'mono' : 'Courier',
@@
-177,7
+185,7
@@
class PythonSTC(stc.StyledTextCtrl):
def OnKeyPressed(self, event):
if self.CallTipActive():
self.CallTipCancel()
def OnKeyPressed(self, event):
if self.CallTipActive():
self.CallTipCancel()
- key = event.KeyCode()
+ key = event.
Get
KeyCode()
if key == 32 and event.ControlDown():
pos = self.GetCurrentPos()
if key == 32 and event.ControlDown():
pos = self.GetCurrentPos()