X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..38cfbffa153c8835025b4207faaf0a12b0b53e6f:/wxPython/src/sizers.i?ds=sidebyside diff --git a/wxPython/src/sizers.i b/wxPython/src/sizers.i index 446de4c3ad..ab4bd97f15 100644 --- a/wxPython/src/sizers.i +++ b/wxPython/src/sizers.i @@ -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)