"""
import wx
-import sys
_RENDER_VER = (2,6,1,1)
of the window stack. If sashPos is given then it is used to
size the new window.
"""
- self.InsertWindow(sys.maxint, window, sashPos)
+ self.InsertWindow(len(self._windows), window, sashPos)
def InsertWindow(self, idx, window, sashPos=-1):
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.