]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/tests/ste.py
added missing string definition
[wxWidgets.git] / wxPython / tests / ste.py
... / ...
CommitLineData
1
2
3from wxPython.wx import *
4from wxPython.ste import wxStyledTextCtrl
5
6
7app = wxPySimpleApp()
8frame = wxFrame(None, -1, "Testing...", (0,0), (320,480))
9ed = wxStyledTextCtrl(frame, -1)
10ed.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
23frame.Show(true)
24app.MainLoop()