From: Robin Dunn
wxPython is brought to you by Robin Dunn and
-Total Control Software, Copyright (c) 1997-2002.
Please see license.txt for licensing information. @@ -48,6 +48,8 @@ demo item so you can learn how to use the classes yourself.
html = wxHtmlWindow(self, -1, size=(420, -1)) py_version = string.split(sys.version)[0] html.SetPage(self.text % (wx.__version__, py_version)) + btn = html.FindWindowById(wxID_OK) + btn.SetDefault() ir = html.GetInternalRepresentation() html.SetSize( (ir.GetWidth()+5, ir.GetHeight()+5) ) self.SetClientSize(html.GetSize()) diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index e5b804fc3d..2fde4eadc1 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -15,7 +15,7 @@ import sys, os, time, string from wxPython.wx import * from wxPython.html import wxHtmlWindow -from wxPython.stc import * +##from wxPython.stc import * import images diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index c11f30d23b..ff7d34fd82 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -332,14 +332,18 @@ be helpful. """ -if __name__ == '__main__': - import sys - app = wxPySimpleApp() - frame = wxFrame(None, -1, "Tester...", size=(640, 480)) - win = runTest(frame, frame, sys.stdout) - frame.Show(true) - app.MainLoop() +## if __name__ == '__main__': +## import sys +## app = wxPySimpleApp() +## frame = wxFrame(None, -1, "Tester...", size=(640, 480)) +## win = runTest(frame, frame, sys.stdout) +## frame.Show(true) +## app.MainLoop() + +if __name__ == '__main__': + import run + run.main(['', 'wxStyledTextCtrl_2'])