]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/html/test/htmlhelp.py
Added rotated text support
[wxWidgets.git] / utils / wxPython / modules / html / test / htmlhelp.py
1 from wxPython.wx import *
2 from wxPython.html import *
3 import os,sys
4
5 if not os.environ.has_key('WXWIN'):
6 print "Can't find html samples. Set WXWIN environment variable."
7 sys.exit(1)
8
9 # Minimal htmlhelpcontroller sample. Everything is done by the framework
10 help = wxHtmlHelpController() # Not created in OnInit, otherwise it's deleted before we see it.
11 help.AddBook(os.environ['WXWIN'] + "/samples/html/help/helpfiles/testing.hhp")
12
13 class MyApp(wxApp):
14 def OnInit(self):
15 help.DisplayContents()
16 return TRUE
17
18 theApp = MyApp(0)
19 theApp.MainLoop()