From 14fb0a9f81f254d06c4102124428aca02a743ee3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 6 Aug 2004 00:03:23 +0000 Subject: [PATCH] use NormalizeFontSizes if on wxGTK2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/About.py | 2 ++ wxPython/demo/HtmlWindow.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wxPython/demo/About.py b/wxPython/demo/About.py index 9b5ff7d3ff..10460ace19 100644 --- a/wxPython/demo/About.py +++ b/wxPython/demo/About.py @@ -46,6 +46,8 @@ demo item so you can learn how to use the classes yourself.

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.NormalizeFontSizes() py_version = sys.version.split()[0] html.SetPage(self.text % (wx.VERSION_STRING, py_version)) btn = html.FindWindowById(wx.ID_OK) diff --git a/wxPython/demo/HtmlWindow.py b/wxPython/demo/HtmlWindow.py index a3321cfbfc..9dac81120f 100644 --- a/wxPython/demo/HtmlWindow.py +++ b/wxPython/demo/HtmlWindow.py @@ -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 ) + if "gtk2" in wx.PlatformInfo: + self.NormalizeFontSizes() def OnScroll( self, event ): #print 'event.GetOrientation()',event.GetOrientation() -- 2.47.2