Fixed problem in wx.lib.splitter when used on 64-bit platforms. Used

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
This commit is contained in:
Robin Dunn 2006-03-31 23:19:34 +00:00
parent 2229d9b30b
commit 8948306f78

View 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 of the window stack. If sashPos is given then it is used to
size the new window. 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):