def addLogbooks(self, type=None, logs=[], default="<STR_LIT>"):
if type is not None and len(logs) != <NUM_LIT:0>:<EOL><INDENT>if type in self.logList:<EOL><INDENT>for logbook in logs:<EOL><INDENT>if logbook not in self.logList.get(type)[<NUM_LIT:0>]:<EOL><INDENT>self.logList.get(type)[<NUM_LIT:0>].append(logbook)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>self.logList[type] = []<EOL>self.logList[type].append(logs)<EOL><DEDENT>if len(self.logList[type]) > <NUM_LIT:1> and default != "<STR_LIT>":<EOL><INDENT>self.logList.get(type)[<NUM_LIT:1>] == default<EOL><DEDENT>else:<EOL><INDENT>self.logList.get(type).append(default)<EOL><DEDENT>self.logType.clear()<EOL>self.logType.addItems(list(self.logList.keys()))<EOL>self.changeLogType()<EOL><DEDENT>
Add or change list of logbooks.