From: Robin Dunn Date: Wed, 15 May 2002 19:06:54 +0000 (+0000) Subject: more demo updates X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/774e63ef5aa5902788f841966133c4a3b470d2a7 more demo updates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/About.py b/wxPython/demo/About.py index bb768b7c60..0605fa36fa 100644 --- a/wxPython/demo/About.py +++ b/wxPython/demo/About.py @@ -29,7 +29,7 @@ sit back and enjoy. Be sure to take a peek at the source code for each demo item so you can learn how to use the classes yourself.

wxPython is brought to you by Robin Dunn and
-Total Control Software, Copyright (c) 1997-2002.

+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'])