def _updateProgramList(self) -> None: programsFile = FileManager.readFile("../DataBase/addedProgramms.db") self._programsList.clear() for row in programsFile: if row != '' and row != '\n' and row != ' ': self._programsList.update({ row.split(" = ")[0].lower(): row.split(" = ")[1].replace('\n', '') }) return
def changeLanguage(self, lang: str) -> None: self.serviceExpressions = FileManager.readFile( "../DataBase/ServiceExpressions" + lang.upper() + ".db") return
def readFileToList(listOBJ: list, file: str) -> None: file = FileManager.readFile(file) listOBJ.clear() for line in file: listOBJ.append(line.replace('\n', '')) return