#-*- coding: UTF-8 -*-
import wx
import wx.html as html
class MyFrame(wx.Frame):
def __init__(self,parent):
wx.Frame.__init__(self,parent,-1,u'简单html浏览器')
htmlwin=html.HtmlWindow(self)
htmlwin.LoadPage("http://www.baidu.com")
app=wx.PySimpleApp()
frame=MyFrame(None)
frame.Show()
app.MainLoop()
转载于:https://my.oschina.net/annieduoduo/blog/71383