]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/sizers.i
some minor fixes to the docs (bugs 13271[56])
[wxWidgets.git] / wxPython / src / sizers.i
index 446de4c3adb16ff2068118b55109bd9fccfad0ac..ab4bd97f15cbb8844bbe0c95c4259f77cad18625 100644 (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)