From: Robin Dunn Date: Mon, 15 May 2006 14:58:36 +0000 (+0000) Subject: Added SetSashPosition X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9c5c87674aa61beca49b2fe887f2e116cf350e67?hp=f1e1e6952e5a2535308fa272eade31c52c90e84e Added SetSashPosition git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/splitter.py b/wxPython/wx/lib/splitter.py index 68d3cfade3..6a819a41ac 100644 --- a/wxPython/wx/lib/splitter.py +++ b/wxPython/wx/lib/splitter.py @@ -209,6 +209,16 @@ class MultiSplitterWindow(wx.PyPanel): return self._sashes[idx] + def SetSashPosition(self, idx, pos): + """ + Set the psition of the idx'th sash, measured from the left/top + of the window preceding the sash. + """ + assert idx < len(self._sashes) + self._sashes[idx] = pos + self._SizeWindows() + + def SizeWindows(self): """ Reposition and size the windows managed by the splitter.