Exemple #1
0
    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)
Exemple #2
0
 def Close(self, *args):
     RemoveView(self, False)
Exemple #3
0
 def DeleteControl(self, view):
     if type(view) == int:
         view = self.GetControl(view)
     RemoveView(view, True)
Exemple #4
0
 def RemoveSubview(self, view, delete=False):
     return RemoveView(view, delete)
Exemple #5
0
 def Close(self):
     RemoveView(self, False)
Exemple #6
0
 def DeleteControl(self, view):  # backwards compatibility
     if type(view) == int:
         view = self.GetControl(view)
     RemoveView(view, True)