Font size fix for mac (not the best fix around)
This commit is contained in:
@@ -42,12 +42,13 @@ class StatsPane(wx.Panel):
|
|||||||
wx.Panel.__init__(self, parent)
|
wx.Panel.__init__(self, parent)
|
||||||
self.SetMinSize((310, -1))
|
self.SetMinSize((310, -1))
|
||||||
|
|
||||||
# Force font size 8
|
# Use 25% smaller fonts if MAC or force font size to 8 for msw/linux
|
||||||
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
if wx.Platform == "__WXMAC__":
|
||||||
standardFont.SetPointSize(8)
|
self.SetWindowVariant(wx.WINDOW_VARIANT_SMALL)
|
||||||
self.SetFont(standardFont)
|
else:
|
||||||
|
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
||||||
# self.SetBackgroundColour(parent.GetBackgroundColour())
|
standardFont.SetPointSize(8)
|
||||||
|
self.SetFont(standardFont)
|
||||||
|
|
||||||
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||||
self.SetSizer(mainSizer)
|
self.SetSizer(mainSizer)
|
||||||
|
|||||||
Reference in New Issue
Block a user