X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a94433573bab16bcfe85985333323523e4b8517..5ca24bf4e00e33ef8a0726a567ec3fed0edcb75c:/utils/wxPython/modules/html/test/htmlhelp.py?ds=sidebyside diff --git a/utils/wxPython/modules/html/test/htmlhelp.py b/utils/wxPython/modules/html/test/htmlhelp.py new file mode 100644 index 0000000000..26c61ad4f3 --- /dev/null +++ b/utils/wxPython/modules/html/test/htmlhelp.py @@ -0,0 +1,19 @@ +from wxPython.wx import * +from wxPython.html import * +import os,sys + +if not os.environ.has_key('WXWIN'): + print "Can't find html samples. Set WXWIN environment variable." + sys.exit(1) + +# Minimal htmlhelpcontroller sample. Everything is done by the framework +help = wxHtmlHelpController() # Not created in OnInit, otherwise it's deleted before we see it. +help.AddBook(os.environ['WXWIN'] + "/samples/html/help/helpfiles/testing.hhp") + +class MyApp(wxApp): + def OnInit(self): + help.DisplayContents() + return TRUE + +theApp = MyApp(0) +theApp.MainLoop()