]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/wxPIA_book/Chapter-16/html_window_loadpage.py
added missing button state
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-16 / html_window_loadpage.py
CommitLineData
be05b434
RD
1import wx
2import wx.html
3
4class MyHtmlFrame(wx.Frame):
5 def __init__(self, parent, title):
6 wx.Frame.__init__(self, parent, -1, title, size=(600,400))
7 html = wx.html.HtmlWindow(self)
8 if "gtk2" in wx.PlatformInfo:
9 html.SetStandardFonts()
10
11 wx.CallAfter(
12 html.LoadPage, "http://wxwidgets.org/manuals/2.6.2/wx_wxbutton.html")
13
14app = wx.PySimpleApp()
15frm = MyHtmlFrame(None, "Simple HTML Browser")
16frm.Show()
17app.MainLoop()