From d2353b9f1c06919ad710d4ea2905d55284d9147c Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sun, 10 Oct 2010 04:27:50 +0300 Subject: [PATCH] Switched back font size setting in pygauge for wxmac --- gui/pygauge.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gui/pygauge.py b/gui/pygauge.py index 2646b6da7..5c95c73e9 100644 --- a/gui/pygauge.py +++ b/gui/pygauge.py @@ -329,12 +329,13 @@ class PyGauge(wx.PyWindow): dc.SetTextForeground(wx.Colour(255,255,255)) + standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) if "__WXMAC__" in wx.PlatformInfo : - self.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) + fsize = 9 else: - standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) - standardFont.SetPointSize(8) - dc.SetFont(standardFont) + fsize = 8 + standardFont.SetPointSize(fsize) + dc.SetFont(standardFont) formatStr = "{0:." + str(self._fractionDigits) + "f}%"