]> git.saurik.com Git - wxWidgets.git/commitdiff
Added SetSashPosition
authorRobin Dunn <robin@alldunn.com>
Mon, 15 May 2006 14:58:36 +0000 (14:58 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 15 May 2006 14:58:36 +0000 (14:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/splitter.py

index 68d3cfade37e59cfc577399348589177bb3a0e0f..6a819a41ac618a8f698a91dacae9a5e0e3a0e4f4 100644 (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.