From 3f7406ab308b4393d5f53c6a92ac8b0cd8cc1a17 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 4 Oct 2002 00:42:03 +0000 Subject: [PATCH] it helps if you actually return the return value! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/sizers.py | 6 +++--- wxPython/src/sizers.i | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wxPython/src/msw/sizers.py b/wxPython/src/msw/sizers.py index 88d328f1d6..43023a892b 100644 --- a/wxPython/src/msw/sizers.py +++ b/wxPython/src/msw/sizers.py @@ -231,11 +231,11 @@ class wxSizerPtr(wxObjectPtr): def Remove(self, *args, **kw): if type(args[0]) == type(1): - apply(self.RemovePos, args, kw) + return apply(self.RemovePos, args, kw) elif string.find(args[0].this, 'Sizer') != -1: - apply(self.RemoveSizer, args, kw) + return apply(self.RemoveSizer, args, kw) else: - apply(self.RemoveWindow, args, kw) + return apply(self.RemoveWindow, args, kw) def AddMany(self, widgets): for childinfo in widgets: diff --git a/wxPython/src/sizers.i b/wxPython/src/sizers.i index 75ff5e3969..eeaccda915 100644 --- a/wxPython/src/sizers.i +++ b/wxPython/src/sizers.i @@ -196,11 +196,11 @@ public: def Remove(self, *args, **kw): if type(args[0]) == type(1): - apply(self.RemovePos, args, kw) + return apply(self.RemovePos, args, kw) elif string.find(args[0].this, 'Sizer') != -1: - apply(self.RemoveSizer, args, kw) + return apply(self.RemoveSizer, args, kw) else: - apply(self.RemoveWindow, args, kw) + return apply(self.RemoveWindow, args, kw) def AddMany(self, widgets): for childinfo in widgets: