X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/095315e20d117d292ea01f8f964b19c032a0fd56..ad9835c97c10c0d7de345e3a7a7c0fc2776eb2cb:/wxPython/wx/lib/splitter.py diff --git a/wxPython/wx/lib/splitter.py b/wxPython/wx/lib/splitter.py index 56c3dafe60..68d3cfade3 100644 --- a/wxPython/wx/lib/splitter.py +++ b/wxPython/wx/lib/splitter.py @@ -1,7 +1,7 @@ #---------------------------------------------------------------------- # Name: wx.lib.splitter # Purpose: A class similar to wx.SplitterWindow but that allows more -# a single split +# than a single split # # Author: Robin Dunn # @@ -17,7 +17,6 @@ more than once. """ import wx -import sys _RENDER_VER = (2,6,1,1) @@ -134,7 +133,7 @@ class MultiSplitterWindow(wx.PyPanel): 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):