]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/HtmlWindow.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / HtmlWindow.py
index d21fea1768f3bedf5ad7598144742da79379d68c..0374604f14ef3cc2c9b58189937e4ce8a9651703 100644 (file)
@@ -17,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 )
         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()
 
     def OnScroll( self, event ):
         #print 'event.GetOrientation()',event.GetOrientation()
@@ -191,7 +193,6 @@ class TestHtmlPanel(wx.Panel):
 
 def runTest(frame, nb, log):
     win = TestHtmlPanel(nb, frame, log)
 
 def runTest(frame, nb, log):
     win = TestHtmlPanel(nb, frame, log)
-    print wx.Window_FindFocus()
     return win
 
 
     return win
 
 
@@ -216,7 +217,7 @@ wraps the core MSIE HTML viewer.
 if __name__ == '__main__':
     import sys,os
     import run
 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:])