]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/About.py
a bit of cleanup
[wxWidgets.git] / wxPython / demo / About.py
index 73e0447114fcc52aa2cc0435d7f0a2c733ca8d8b..badc45fcaab65cd132ee1e71614ccf017e615cc9 100644 (file)
@@ -46,10 +46,11 @@ demo item so you can learn how to use the classes yourself.</p>
     def __init__(self, parent):
         wx.Dialog.__init__(self, parent, -1, 'About the wxPython demo',)
         html = wx.html.HtmlWindow(self, -1, size=(420, -1))
+        if "gtk2" in wx.PlatformInfo:
+            html.SetStandardFonts()
         py_version = sys.version.split()[0]
         html.SetPage(self.text % (wx.VERSION_STRING, py_version))
         btn = html.FindWindowById(wx.ID_OK)
-        ##btn.SetDefault()
         ir = html.GetInternalRepresentation()
         html.SetSize( (ir.GetWidth()+25, ir.GetHeight()+25) )
         self.SetClientSize(html.GetSize())