]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/ste.py
3 from wxPython
.wx
import *
4 from wxPython
.ste
import wxStyledTextCtrl
8 frame
= wxFrame(None, -1, "Testing...", (0,0), (320,480))
9 ed
= wxStyledTextCtrl(frame
, -1)
10 ed
.AddText(open('test7.py').read())
12 #ed.AddText("This is a test\nThis is only a test.\n\nHere we go cowboys, here we go!!!\nThe End")
13 #ed.SetBufferedDraw(false)
15 #ed.StyleSetFontAttr(1, 14, "Times New Roman", true, false)
16 #ed.StyleSetForeground(1, wxBLUE)
17 #ed.StyleSetFont(2, wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, false))
19 #ed.StartStyling(48, 0xff)