More STC fixes and tweaks.
Added another STC demo for wxPython. This one sets up an editor with the Python lexer and a bunch of styles. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,7 +34,7 @@ capabilities, (right click to try it out.)
|
||||
"""
|
||||
|
||||
if wxPlatform == '__WXMSW__':
|
||||
face1 = 'Ariel'
|
||||
face1 = 'Arial'
|
||||
face2 = 'Times New Roman'
|
||||
face3 = 'Courier New'
|
||||
pb = 6
|
||||
@@ -51,7 +51,7 @@ def runTest(frame, nb, log):
|
||||
ed = wxStyledTextCtrl(nb, -1)
|
||||
|
||||
ed.SetText(demoText)
|
||||
|
||||
ed.EmptyUndoBuffer()
|
||||
|
||||
# make some styles
|
||||
ed.StyleSetSpec(wxSTC_STYLE_DEFAULT, "size:%d,face:%s" % (pb+2, face3))
|
||||
|
Reference in New Issue
Block a user