X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/demo/HtmlWindow.py diff --git a/wxPython/demo/HtmlWindow.py b/wxPython/demo/HtmlWindow.py index edfe7027b6..0374604f14 100644 --- a/wxPython/demo/HtmlWindow.py +++ b/wxPython/demo/HtmlWindow.py @@ -1,15 +1,3 @@ -# 11/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# -# 12/13/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o got the wxpTag stuff working right. -# -# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o wxScrolledMessageDialog -> ScrolledMessageDialog -# import os import sys @@ -29,6 +17,8 @@ class MyHtmlWindow(html.HtmlWindow): html.HtmlWindow.__init__(self, parent, id, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.log = log self.Bind(wx.EVT_SCROLLWIN, self.OnScroll ) + if "gtk2" in wx.PlatformInfo: + self.SetStandardFonts() def OnScroll( self, event ): #print 'event.GetOrientation()',event.GetOrientation() @@ -203,7 +193,6 @@ class TestHtmlPanel(wx.Panel): def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) - print wx.Window_FindFocus() return win @@ -211,9 +200,9 @@ def runTest(frame, nb, log): overview = """
-wxHtmlWindow is capable of parsing and rendering most +
wx.HtmlWindow is capable of parsing and rendering most simple HTML tags.
It is not intended to be a high-end HTML browser. If you're @@ -228,7 +217,7 @@ wraps the core MSIE HTML viewer. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])