small bug fix in the wxSizer.Insert wrapper

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-08-22 23:03:09 +00:00
parent 9c7013a23b
commit 4ab299e341
3 changed files with 6 additions and 6 deletions

View File

@@ -191,9 +191,9 @@ class wxSizerPtr :
apply(self.AddWindow, args)
def Insert(self, *args):
if type(args[0]) == type(1):
if type(args[1]) == type(1):
apply(self.InsertSpacer, args)
elif string.find(args[0].this, 'Sizer') != -1:
elif string.find(args[1].this, 'Sizer') != -1:
apply(self.InsertSizer, args)
else:
apply(self.InsertWindow, args)

View File

@@ -191,9 +191,9 @@ class wxSizerPtr :
apply(self.AddWindow, args)
def Insert(self, *args):
if type(args[0]) == type(1):
if type(args[1]) == type(1):
apply(self.InsertSpacer, args)
elif string.find(args[0].this, 'Sizer') != -1:
elif string.find(args[1].this, 'Sizer') != -1:
apply(self.InsertSizer, args)
else:
apply(self.InsertWindow, args)

View File

@@ -168,9 +168,9 @@ public:
apply(self.AddWindow, args)
def Insert(self, *args):
if type(args[0]) == type(1):
if type(args[1]) == type(1):
apply(self.InsertSpacer, args)
elif string.find(args[0].this, 'Sizer') != -1:
elif string.find(args[1].this, 'Sizer') != -1:
apply(self.InsertSizer, args)
else:
apply(self.InsertWindow, args)