擅长:python、mysql、java
<p>wx.html.htmlwindows示例</p>
<pre><code>import wx
import wx.html
class MyHtmlFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1, title, size=(600,400))
html = wx.html.HtmlWindow(self)
wx.CallAfter(html.LoadPage, "http://www.google.com")
app = wx.PySimpleApp()
frm = MyHtmlFrame(None, "Simple HTML Browser")
frm.Show()
app.MainLoop()
</code></pre>
<blockquote>
<p><strong>wx.HtmlWindow</strong></p>
<p>wx.HtmlWindow is capable of parsing
and rendering most simple HTML tags. </p>
<p>It is not intended to be a high-end
HTML browser. If you're looking for
something like that see the
<strong>IEHtmlWin</strong> class, which wraps the core MSIE HTML viewer.</p>
</blockquote>