From f9a5ba047c2856bcecb9568573c6ae995f9eab8b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 24 Mar 2005 20:37:48 +0000 Subject: [PATCH] Delay some of the cascading resizes to work around a bug with defered resizes in wxMSW. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/multisash.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/wxPython/wx/lib/multisash.py b/wxPython/wx/lib/multisash.py index fbf7217816..6be5e730aa 100644 --- a/wxPython/wx/lib/multisash.py +++ b/wxPython/wx/lib/multisash.py @@ -366,12 +366,17 @@ class MultiViewLeaf(wx.Window): return self.GetParent().CanSize(side,self) def OnSize(self,evt): - self.sizerHor.OnSize(evt) - self.sizerVer.OnSize(evt) - self.creatorHor.OnSize(evt) - self.creatorVer.OnSize(evt) - self.detail.OnSize(evt) - self.closer.OnSize(evt) + def doresize(): + try: + self.sizerHor.OnSize(evt) + self.sizerVer.OnSize(evt) + self.creatorHor.OnSize(evt) + self.creatorVer.OnSize(evt) + self.detail.OnSize(evt) + self.closer.OnSize(evt) + except: + pass + wx.CallAfter(doresize) #---------------------------------------------------------------------- -- 2.45.2