Revert "Hardcoded font stuff in togglepanel"

This reverts commit fdf0ce9774.
This commit is contained in:
HomeWorld
2010-09-16 16:33:16 +03:00
parent 7bef066c71
commit c7423563d3

View File

@@ -38,9 +38,6 @@ class TogglePanel ( wx.Panel ):
self.parent = parent
self.bkColour = self.GetBackgroundColour()
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
standardFont.SetPointSize(8)
self.SetFont(standardFont)
# Odd stuff :S
# self.SetBackgroundColour( self.bkColour )
@@ -55,7 +52,6 @@ class TogglePanel ( wx.Panel ):
self.headerPanel = wx.Panel(self)
self.headerPanel.InheritAttributes()
self.headerPanel.SetFont(standardFont)
# self.headerPanel.SetBackgroundColour( self.bkColour)
self.mainSizer.Add(self.headerPanel,0,wx.EXPAND | wx.TOP|wx.BOTTOM|wx.RIGHT, 1)
@@ -107,10 +103,8 @@ class TogglePanel ( wx.Panel ):
# Set the static text font weight to BOLD
headerFont=wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
headerFont.SetPointSize(8)
headerFont=parent.GetFont()
headerFont.SetWeight(wx.BOLD)
self.headerLabel.SetFont(headerFont)
# Create the content panel and its main sizer
@@ -118,8 +112,6 @@ class TogglePanel ( wx.Panel ):
self.contentSizer = wx.BoxSizer( wx.VERTICAL )
self.contentPanel = wx.Panel(self)
self.contentPanel.SetFont(standardFont)
self.contentPanel.InheritAttributes()
self.contentPanel.SetSizer(self.contentSizer)