sonar/database.py
def clear():
        """
        Clear all tools from the database
        """
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            db["tool"] = {}
            active = db["active"]
            for key in ("cad", "hls", "sim"):
                active[key] = None
            db["active"] = active

        Clear all tools from the database
        
Clear all tools from the database
Clear all tools from the database
def clear():
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            db["tool"] = {}
            active = db["active"]
            for key in ("cad", "hls", "sim"):
                active[key] = None
            db["active"] = active
def clear ( ) : with shelve . open ( Constants . SONAR_DB_PATH ) as db : db [ "tool" ] = { } active = db [ "active" ] for key in ( "cad" , "hls" , "sim" ) : active [ key ] = None db [ "active" ] = active
Clear all tools from the database
Clear all tools from the database
"""
        Clear all tools from the database
        """