Added SetSashPosition

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-05-15 14:58:36 +00:00
parent f1e1e6952e
commit 9c5c87674a

View File

@ -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.