From 20f5eb5e7c69115ad846b46b5ba82cd43b599c89 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 6 Feb 2003 18:43:59 +0000 Subject: [PATCH] SWIGged updates for wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/sizers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxPython/src/msw/sizers.py b/wxPython/src/msw/sizers.py index 53c769a251..922d4a60e9 100644 --- a/wxPython/src/msw/sizers.py +++ b/wxPython/src/msw/sizers.py @@ -244,9 +244,9 @@ class wxSizerPtr(wxObjectPtr): 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'