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:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user