- def Add(self, *args, **kw):
- if type(args[0]) == type(1):
- apply(self.AddSpacer, args, kw)
- elif isinstance(args[0], wxSizerPtr):
- apply(self.AddSizer, args, kw)
- elif isinstance(args[0], wxWindowPtr):
- apply(self.AddWindow, args, kw)
- else:
- raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
-
- def Insert(self, *args, **kw):
- if type(args[1]) == type(1):
- apply(self.InsertSpacer, args, kw)
- elif isinstance(args[1], wxSizerPtr):
- apply(self.InsertSizer, args, kw)
- elif isinstance(args[1], wxWindowPtr):
- apply(self.InsertWindow, args, kw)
- else:
- raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
-
- def Prepend(self, *args, **kw):
- if type(args[0]) == type(1):
- apply(self.PrependSpacer, args, kw)
- elif isinstance(args[0], wxSizerPtr):
- apply(self.PrependSizer, args, kw)
- elif isinstance(args[0], wxWindowPtr):
- apply(self.PrependWindow, args, kw)
- else:
- raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
-
- def Remove(self, *args, **kw):
- if type(args[0]) == type(1):
- return apply(self.RemovePos, args, kw)
- elif isinstance(args[0], wxSizerPtr):
- return apply(self.RemoveSizer, args, kw)
- elif isinstance(args[0], wxWindowPtr):
- return apply(self.RemoveWindow, args, kw)
- else:
- raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
-
- def Detach(self, *args, **kw):
- if type(args[0]) == type(1):
- return apply(self.DetachPos, args, kw)
- elif isinstance(args[0], wxSizerPtr):
- return apply(self.DetachSizer, args, kw)
- elif isinstance(args[0], wxWindowPtr):
- return apply(self.DetachWindow, args, kw)
- else:
- raise TypeError, 'Expected int, wxSizer or wxWindow parameter'