]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed problem in wx.lib.splitter when used on 64-bit platforms. Used
authorRobin Dunn <robin@alldunn.com>
Fri, 31 Mar 2006 23:19:34 +0000 (23:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 31 Mar 2006 23:19:34 +0000 (23:19 +0000)
the current length of the list for specifying an append instead of
sys.maxint.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/splitter.py

index a56a8b696d615cb1d518e984808dbd3e03aa2e4a..68d3cfade37e59cfc577399348589177bb3a0e0f 100644 (file)
@@ -17,7 +17,6 @@ more than once.
 """
 
 import wx
 """
 
 import wx
-import sys
 
 _RENDER_VER = (2,6,1,1)
 
 
 _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.
         """
         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):
 
 
     def InsertWindow(self, idx, window, sashPos=-1):