using version 2.9.4

tried loading local html file with some javascript.
worked so far. tested with jquery. ok too.
import wx
import wx.html2
app = wx.App(False)
frame = wx.Frame(None, -1, 'A Simple Frame')
browser = wx.html2.WebView.New(frame)
browser.LoadURL("http://www.google.com")
frame.Show()
app.MainLoop()

tried loading local html file with some javascript.
worked so far. tested with jquery. ok too.
import os
browser.LoadURL(os.path.realpath("test.html"))
No comments:
Post a Comment