]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-16/html_window.py
fixed deadlock when calling wxPostEvent() from worker thread
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-16 / html_window.py
1 import wx
2 import wx.html
3
4 class MyHtmlFrame(wx.Frame):
5 def __init__(self, parent, title):
6 wx.Frame.__init__(self, parent, -1, title)
7 html = wx.html.HtmlWindow(self)
8 if "gtk2" in wx.PlatformInfo:
9 html.SetStandardFonts()
10
11 html.SetPage(
12 "Here is some <b>formatted</b> <i><u>text</u></i> "
13 "loaded from a <font color=\"red\">string</font>.")
14
15
16 app = wx.PySimpleApp()
17 frm = MyHtmlFrame(None, "Simple HTML")
18 frm.Show()
19 app.MainLoop()