From 17eb2d7376b4d9bab6f55e1925089f507edb0a7e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 6 Feb 2003 18:36:38 +0000 Subject: [PATCH] Fixed wxSizer.Insert wrapper to not try to use the first param as the window. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/sizers.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxPython/src/sizers.i b/wxPython/src/sizers.i index 954706ac18..d456bd923d 100644 --- a/wxPython/src/sizers.i +++ b/wxPython/src/sizers.i @@ -184,9 +184,9 @@ public: def Insert(self, *args, **kw): if type(args[1]) == type(1): apply(self.InsertSpacer, args, kw) - elif isinstance(args[0], wxSizerPtr): + elif isinstance(args[1], wxSizerPtr): apply(self.InsertSizer, args, kw) - elif isinstance(args[0], wxWindowPtr): + elif isinstance(args[1], wxWindowPtr): apply(self.InsertWindow, args, kw) else: raise TypeError, 'Expected int, wxSizer or wxWindow parameter'