From 4ab299e341f8c3953eabe9bd6b38a383bbd5f2fa Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 Aug 2000 23:03:09 +0000 Subject: [PATCH] small bug fix in the wxSizer.Insert wrapper git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/gtk/sizers.py | 4 ++-- wxPython/src/msw/sizers.py | 4 ++-- wxPython/src/sizers.i | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wxPython/src/gtk/sizers.py b/wxPython/src/gtk/sizers.py index 3305dda245..9dbce08acb 100644 --- a/wxPython/src/gtk/sizers.py +++ b/wxPython/src/gtk/sizers.py @@ -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) diff --git a/wxPython/src/msw/sizers.py b/wxPython/src/msw/sizers.py index 3305dda245..9dbce08acb 100644 --- a/wxPython/src/msw/sizers.py +++ b/wxPython/src/msw/sizers.py @@ -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) 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)