Esempio n. 1
0
    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
Esempio n. 2
0
    def changeLanguage(self, lang: str) -> None:
        self.serviceExpressions = FileManager.readFile(
            "../DataBase/ServiceExpressions" + lang.upper() + ".db")

        return
Esempio n. 3
0
 def readFileToList(listOBJ: list, file: str) -> None:
     file = FileManager.readFile(file)
     listOBJ.clear()
     for line in file:
         listOBJ.append(line.replace('\n', ''))
     return