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
This commit is contained in:
Robin Dunn
2003-02-06 18:43:59 +00:00
parent 471e73eb08
commit 20f5eb5e7c

View File

@@ -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'