From 3a9604b42b150d20382faa819ffdf38c3bba33b6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 11 Jun 2005 19:43:15 +0000 Subject: [PATCH] Only Freeze/Thaw on wxMSW. The other ports don't need it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/splitter.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wxPython/wx/lib/splitter.py b/wxPython/wx/lib/splitter.py index 2930cbab21..a0d7bfb0f7 100644 --- a/wxPython/wx/lib/splitter.py +++ b/wxPython/wx/lib/splitter.py @@ -688,8 +688,9 @@ class MultiSplitterWindow(wx.PyPanel): self._windows[0].SetDimensions(border, border, cw - 2*border, ch - 2*border) else: - for win in self._windows: - win.Freeze() + if 'wxMSW' in wx.PlatformInfo: + for win in self._windows: + win.Freeze() if self._orient == wx.HORIZONTAL: x = y = border h = ch - 2*border @@ -712,8 +713,9 @@ class MultiSplitterWindow(wx.PyPanel): self._windows[idx+1].SetDimensions(x, y, w, last) if last > 0: self._sashes[idx+1] = last - for win in self._windows: - win.Thaw() + if 'wxMSW' in wx.PlatformInfo: + for win in self._windows: + win.Thaw() self._DrawSash(wx.ClientDC(self)) self._needUpdating = False -- 2.45.2