From 987dc109e9b0e642342c28796e70b6c4486c84bb Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sun, 5 Sep 2010 22:27:16 +0300 Subject: [PATCH] TogglePanel: more tweaks - try 3 (colour stuff) --- gui/pyfatogglepanel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/pyfatogglepanel.py b/gui/pyfatogglepanel.py index 1a5f536ac..3f96e2ec3 100644 --- a/gui/pyfatogglepanel.py +++ b/gui/pyfatogglepanel.py @@ -20,12 +20,12 @@ class TogglePanel ( wx.Panel ): self._toggle = 1 self.parent = parent - + self.bkColour = parent.GetBackgroundColour() self.mainSizer = wx.BoxSizer( wx.VERTICAL ) self.SetSizer( self.mainSizer ) self.headerPanel = wx.Panel(self) -# self.headerPanel.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT) ) + self.headerPanel.SetBackgroundColour( self.bkColour) self.mainSizer.Add(self.headerPanel,0,wx.EXPAND,5) @@ -73,7 +73,7 @@ class TogglePanel ( wx.Panel ): self.contentPanel = wx.Panel(self) self.contentPanel.SetSizer(self.contentSizer) - self.SetBackgroundColour( self.parent.GetBackgroundColour() ) + self.SetBackgroundColour( self.bkColour ) self.mainSizer.Add( self.contentPanel, 1, wx.EXPAND, 5) @@ -141,7 +141,7 @@ class TogglePanel ( wx.Panel ): def leaveWindow( self, event ): - self.headerPanel.SetBackgroundColour( self.parent.GetBackgroundColour() ) + self.headerPanel.SetBackgroundColour( self.bkColour ) self.headerPanel.Refresh() pass