class Credits(QDialog): """ This screen shows who has developed,documented, translated and the licence of the project """ def __init__(self, parent=None): super(Credits, self).__init__(parent) self.setupUi() #=================================================================================================================== def setupUi(self): self.ui = Ui_creditscreen() self.ui.setupUi(self) #=================================================================================================================== def showCredits(self): #path_license = os.path.join(os.path.dirname(os.path.dirname(os.path.basename(__file__)))) #path_license = os.path.join(os.path.dirname("../../"), "LICENSE") with open('path_license', 'r') as my_license: text = my_license.read() self.ui.textBrowserlicense.append(text) #init authors authors = [] for person in info.CREDITS['code']: name = person['name'] email = person['email'] authors.append("{} <{}>".format(name, email)) self.ui.textBrowserwritten.append(str(authors)) #init documenters authors = [] for person in info.CREDITS['documentation']: name = person['name'] email = person['email'] authors.append("{} <{}>".format(name, email)) self.ui.textBrowserdocumented.append(str(authors)) #init translator authors = [] for person in info.CREDITS['translation']: name = person['name'] email = person['email'] authors.append("{} <{}>".format(name, email)) self.ui.textBrowsertranslated.append(str(authors))