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
This commit is contained in:
@@ -184,9 +184,9 @@ public:
|
|||||||
def Insert(self, *args, **kw):
|
def Insert(self, *args, **kw):
|
||||||
if type(args[1]) == type(1):
|
if type(args[1]) == type(1):
|
||||||
apply(self.InsertSpacer, args, kw)
|
apply(self.InsertSpacer, args, kw)
|
||||||
elif isinstance(args[0], wxSizerPtr):
|
elif isinstance(args[1], wxSizerPtr):
|
||||||
apply(self.InsertSizer, args, kw)
|
apply(self.InsertSizer, args, kw)
|
||||||
elif isinstance(args[0], wxWindowPtr):
|
elif isinstance(args[1], wxWindowPtr):
|
||||||
apply(self.InsertWindow, args, kw)
|
apply(self.InsertWindow, args, kw)
|
||||||
else:
|
else:
|
||||||
raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
|
raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
|
||||||
|
Reference in New Issue
Block a user