def ReplaceSubview(self, subview, ctype, *args): if isinstance(subview, int): subview = self.GetControl(subview) newID = subview.ID & 0x00000000ffffffff frame = subview.GetFrame() RemoveView(subview, True) return self.CreateSubview(newID, ctype, frame, args)
def Close(self, *args): RemoveView(self, False)
def DeleteControl(self, view): if type(view) == int: view = self.GetControl(view) RemoveView(view, True)
def RemoveSubview(self, view, delete=False): return RemoveView(view, delete)
def Close(self): RemoveView(self, False)
def DeleteControl(self, view): # backwards compatibility if type(view) == int: view = self.GetControl(view) RemoveView(view, True)