X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8948306f7868ceea54691f31209c9daf3882be1d..9f54c187b027671bd956d6e5dc66387136441977:/wxPython/wx/lib/splitter.py 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.