]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/sizers.py
test commit, no real change
[wxWidgets.git] / wxPython / src / gtk / sizers.py
index 3305dda245fc2960d22aa7ea943daa99cc1d1d09..9dbce08acbcd1c8081e81eaf60a3992dc3463af4 100644 (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)