Пример #1
0
    def destroy (self):
        """B.destroy () -> None

        Destroys the Bin and removes it from its event system.
        """
        if self.child:
            w = self.child
            w.parent = None
            self.child = None
            w.destroy ()
            del w
        BaseWidget.destroy (self)
Пример #2
0
    def destroy(self):
        """B.destroy () -> None

        Destroys the Bin and removes it from its event system.
        """
        if self.child:
            w = self.child
            w.parent = None
            self.child = None
            w.destroy()
            del w
        BaseWidget.destroy(self)
Пример #3
0
    def destroy(self):
        """C.destroy () -> None

        Destroys the Container and removes it from its event system.
        """
        _pop = self.children.pop
        while len(self.children) > 0:
            widget = _pop()
            widget.parent = None
            widget.destroy()
            del widget
        # del self.children
        BaseWidget.destroy(self)
Пример #4
0
    def destroy(self):
        """C.destroy () -> None

        Destroys the Container and removes it from its event system.
        """
        _pop = self.children.pop
        while len(self.children) > 0:
            widget = _pop()
            widget.parent = None
            widget.destroy()
            del widget
        # del self.children
        BaseWidget.destroy(self)