(self)
Clear the List
Clear the List
Clear the List
def clear_list(self):
        """ Clear the List
        """
        # go through all items and tell it gets removed
        for item in range(self._breakpoints_model.rowCount()):
            self._on_delete_breakpoint(item)

        if self._breakpoints_model.rowCount() > 0:
            # something was wrong it should be empty
            self._breakpoints_model.removeRows(0, self._breakpoints_model.rowCount())
def clear_list ( self ) : # go through all items and tell it gets removed for item in range ( self . _breakpoints_model . rowCount ( ) ) : self . _on_delete_breakpoint ( item ) if self . _breakpoints_model . rowCount ( ) > 0 : # something was wrong it should be empty self . _breakpoints_model . removeRows ( 0 , self . _breakpoints_model . rowCount ( ) )