2000-01-31 21:01:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
from wxPython.wx import *
|
2000-02-16 05:57:16 +00:00
|
|
|
from wxPython.ste import wxStyledTextCtrl
|
2000-01-31 21:01:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
app = wxPySimpleApp()
|
|
|
|
frame = wxFrame(None, -1, "Testing...", (0,0), (320,480))
|
2000-02-16 05:57:16 +00:00
|
|
|
ed = wxStyledTextCtrl(frame, -1)
|
2000-01-31 21:01:00 +00:00
|
|
|
ed.AddText(open('test7.py').read())
|
|
|
|
|
|
|
|
#ed.AddText("This is a test\nThis is only a test.\n\nHere we go cowboys, here we go!!!\nThe End")
|
|
|
|
#ed.SetBufferedDraw(false)
|
|
|
|
|
|
|
|
#ed.StyleSetFontAttr(1, 14, "Times New Roman", true, false)
|
|
|
|
#ed.StyleSetForeground(1, wxBLUE)
|
|
|
|
#ed.StyleSetFont(2, wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, false))
|
|
|
|
|
|
|
|
#ed.StartStyling(48, 0xff)
|
|
|
|
#ed.SetStyleFor(7, 1)
|
|
|
|
|
|
|
|
|
|
|
|
frame.Show(true)
|
|
|
|
app.MainLoop()
|