]> git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/ste.py
merged 2.2 branch
[wxWidgets.git] / wxPython / tests / ste.py
1
2
3 from wxPython.wx import *
4 from wxPython.ste import wxStyledTextCtrl
5
6
7 app = wxPySimpleApp()
8 frame = wxFrame(None, -1, "Testing...", (0,0), (320,480))
9 ed = wxStyledTextCtrl(frame, -1)
10 ed.AddText(open('test7.py').read())
11
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)
14
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))
18
19 #ed.StartStyling(48, 0xff)
20 #ed.SetStyleFor(7, 1)
21
22
23 frame.Show(true)
24 app.MainLoop()