(self)
Clear the list (remove all widgets).
Clear the list (remove all widgets).
Clear the list ( remove all widgets ) .
def clear(self):
        """Clear the list (remove all widgets).
        """
        for w in reversed(self.widgets()):
            self.removeWidget(w)
def clear ( self ) : for w in reversed ( self . widgets ( ) ) : self . removeWidget ( w )