(self)
Clear the widget state
Clear the widget state
Clear the widget state
def clear(self):
        """
        Clear the widget state
        """
        scene = self.scene()
        for child in self.childItems():
            child.setParentItem(None)
            scene.removeItem(child)
        self.__groups = []
        self.__topScale = None
        self.__bottomScale = None
def clear ( self ) : scene = self . scene ( ) for child in self . childItems ( ) : child . setParentItem ( None ) scene . removeItem ( child ) self . __groups = [ ] self . __topScale = None self . __bottomScale = None