wxHTMLのメモ
#!/usr/bin/local/python # -*- coding: utf-8 -*- import sys import os import wx import wx.html from wx import xrc class MyApp(wx.App): def OnInit(self): self.frame = wx.Frame(None, -1, "test") sizer = wx.BoxSizer( wx.VERTICAL ) self.main_wnd = wx.html.HtmlWindow( self.frame, wx.ID_ANY) sizer.Add(self.main_wnd, 1, wx.ALL|wx.EXPAND, 5) self.frame.SetSizer( sizer) self.frame.Layout() self.main_wnd.SetPage("<h1>ERRO</h1>") self.frame.Show() return True def OnExit(self): pass if __name__ == "__main__": app = MyApp() app.MainLoop()