From 9cc1205f2e789533afb33671d47a0120e2c1b2ab Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Tue, 28 Sep 2010 21:23:10 +0300 Subject: [PATCH] Removed .layout() on every paint event in pyfatogglepanel --- gui/pyfatogglepanel.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gui/pyfatogglepanel.py b/gui/pyfatogglepanel.py index bda48806f..565ca5c01 100644 --- a/gui/pyfatogglepanel.py +++ b/gui/pyfatogglepanel.py @@ -4,7 +4,7 @@ ## pyfatogllepanel.py ## ## Author: Darriele - HomeWorld -## Serial: 2010090702 (YYYYMMDDII) +## Serial: 2010092801 (YYYYMMDDII) ## Project home: http://www.evefit.org - pyfa project ## http://www.evefit.org is the home for pyfa / eos / aurora ## Some portions of code are based on @@ -20,6 +20,8 @@ ## ## This module is part of PYFA (PYthon Fitting Assitant) and it shares the same ## licence ( read PYFA licence notice: gpl.txt ) +## +## Notes: leave the commented code as it is, those line will be removed someday ########################################################################### import wx @@ -125,18 +127,18 @@ class TogglePanel ( wx.Panel ): self.headerLabel.Bind( wx.EVT_LEFT_UP, self.toggleContent ) self.headerBmp.Bind( wx.EVT_LEFT_UP, self.toggleContent ) self.headerPanel.Bind( wx.EVT_LEFT_UP, self.toggleContent ) - self.Bind(wx.EVT_PAINT, self.OnPaint) - self.headerPanel.Bind(wx.EVT_PAINT, self.OnPaint) - self.contentPanel.Bind(wx.EVT_PAINT, self.OnPaint) +# self.Bind(wx.EVT_PAINT, self.OnPaint) +# self.headerPanel.Bind(wx.EVT_PAINT, self.OnPaint) +# self.contentPanel.Bind(wx.EVT_PAINT, self.OnPaint) def __del__( self ): pass - def OnPaint(self, event): - self.contentPanel.Layout() - self.headerPanel.Layout() - event.Skip() +# def OnPaint(self, event): +# self.contentPanel.Layout() +# self.headerPanel.Layout() +# event.Skip() def AddToggleItem(self, hitem): hitem.Bind( wx.EVT_LEFT_UP, self.toggleContent )