wx namespace

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-26 06:11:01 +00:00
parent 1e0c87227c
commit e6c3f9eb6a

View File

@@ -41,28 +41,23 @@ def main(args=sys.argv):
print __doc__ print __doc__
return return
from wxPython.wx import wxPySimpleApp, wxConfigBase_Get, \ import wx
wxLog_SetActiveTarget, wxLogStderr, \ import wx.html
wxLog_SetLogLevel, wxLOG_Error, \
wxFileSystem_AddHandler, wxZipFSHandler
import wxPython.html
from wxPython.htmlhelp import wxHtmlHelpController
app = wx.PySimpleApp()
app = wxPySimpleApp() #wx.Log.SetActiveTarget(wx.LogStderr())
#wxLog_SetActiveTarget(wxLogStderr()) wx.Log.SetLogLevel(wx.LOG_Error)
wxLog_SetLogLevel(wxLOG_Error)
# Set up the default config so the htmlhelp frame can save its preferences # Set up the default config so the htmlhelp frame can save its preferences
app.SetVendorName('wxWindows') app.SetVendorName('wxWindows')
app.SetAppName('helpviewer') app.SetAppName('helpviewer')
cfg = wxConfigBase_Get() cfg = wx.ConfigBase.Get()
# Add the Zip filesystem # Add the Zip filesystem
wxFileSystem_AddHandler(wxZipFSHandler()) wx.FileSystem.AddHandler(wx.ZipFSHandler())
# Create the viewer # Create the viewer
helpctrl = wxHtmlHelpController() helpctrl = wx.html.HtmlHelpController()
if cachedir: if cachedir:
helpctrl.SetTempDir(cachedir) helpctrl.SetTempDir(cachedir)
@@ -78,3 +73,5 @@ def main(args=sys.argv):
if __name__ == '__main__': if __name__ == '__main__':
main() main()