X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..cd4915e2c915d6c7611b38fa5182e2d84d1ca669:/wxPython/src/sizers.i 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)