added wxHtmlHelpController and -System wrappers. See README for some remarks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Harco de Hilster
1999-08-31 23:22:34 +00:00
parent 6a94433573
commit 5ca24bf4e0
9 changed files with 2241 additions and 6 deletions

View File

@@ -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()