Skip to content

Commit

Permalink
Revert "Hardcoded font stuff in togglepanel"
Browse files Browse the repository at this point in the history
This reverts commit fdf0ce9.
  • Loading branch information
hwdro committed Sep 16, 2010
1 parent 7bef066 commit c742356
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions gui/pyfatogglepanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__( self, parent ):
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 )
Expand All @@ -55,7 +52,6 @@ def __init__( self, parent ):

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)
Expand Down Expand Up @@ -107,19 +103,15 @@ def __init__( self, parent ):

# 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


self.contentSizer = wx.BoxSizer( wx.VERTICAL )
self.contentPanel = wx.Panel(self)
self.contentPanel.SetFont(standardFont)

self.contentPanel.InheritAttributes()
self.contentPanel.SetSizer(self.contentSizer)

Expand Down

0 comments on commit c742356

Please sign in to comment.