def setupEmptyTree(self):
        """Setup empty Tree at startup. """
        if hasattr(self, "tree"):
            del self.tree
        self.tree = QtWidgets.QTreeWidget(self)
        self.tree.header().close()
def setupEmptyTree ( self ) : if hasattr ( self , "tree" ) : del self . tree self . tree = QtWidgets . QTreeWidget ( self ) self . tree . header ( ) . close ( )
Setup empty Tree at startup.