From 7bef066c7138e853b1cb89809cf57890eea71f8d Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 16 Sep 2010 16:31:01 +0300 Subject: [PATCH] Revert "Testing SetWindowVariant(wx.WINDOW_VARIANT_SMALL)" This reverts commit 246e6597c5c626610cd0a874728a3993c362b9ec. --- gui/pyfatogglepanel.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/pyfatogglepanel.py b/gui/pyfatogglepanel.py index c5a732824..97464dc5b 100644 --- a/gui/pyfatogglepanel.py +++ b/gui/pyfatogglepanel.py @@ -39,7 +39,7 @@ class TogglePanel ( wx.Panel ): self.bkColour = self.GetBackgroundColour() standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) -# standardFont.SetPointSize(8) + standardFont.SetPointSize(8) self.SetFont(standardFont) # Odd stuff :S @@ -54,9 +54,8 @@ class TogglePanel ( wx.Panel ): # Create the header panel self.headerPanel = wx.Panel(self) - + self.headerPanel.InheritAttributes() self.headerPanel.SetFont(standardFont) - self.headerPanel.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) # self.headerPanel.SetBackgroundColour( self.bkColour) self.mainSizer.Add(self.headerPanel,0,wx.EXPAND | wx.TOP|wx.BOTTOM|wx.RIGHT, 1) @@ -109,7 +108,7 @@ 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.SetPointSize(8) headerFont.SetWeight(wx.BOLD) self.headerLabel.SetFont(headerFont) @@ -120,7 +119,8 @@ class TogglePanel ( wx.Panel ): self.contentSizer = wx.BoxSizer( wx.VERTICAL ) self.contentPanel = wx.Panel(self) self.contentPanel.SetFont(standardFont) - self.contentPanel.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) + + self.contentPanel.InheritAttributes() self.contentPanel.SetSizer(self.contentSizer) self.mainSizer.Add( self.contentPanel, 0, wx.EXPAND | wx.RIGHT | wx.LEFT , 5)