def popupDiagnosis(self, hildonMenuPath): dialog = DialogDisplayText() dialog.setWindowTitle("Diagnosis Tool") diagTool = DiagnosisTool() exists = diagTool.getIsSetHildonMenu(hildonMenuPath) diag = "hildon.menu set: " + str(exists) +"\n" if exists: template = self.readHildonMenuTemplate() matches = diagTool.compareHildonMenu(hildonMenuPath, template) diag += "hildon.menu matches: " + str(matches) + "\n" if not matches: diag += "\n" diag += diagTool.hildonFromPath diag += "\n\n" diag += "\nDirectory Files:\n" list = diagTool.getFilesDirectory(self.folderlist.DirpathGlobal, self.folderlist.DirpathLocal) for file in list: diag += file + "\n" diag += "\n" diag += "\nMenu Files:\n" list = diagTool.getFilesMenu(self.folderlist.Menupath) for file in list: diag += file + "\n" diag += "\n" dialog.txtDisplay.setText(diag) dialog.show() dialog.exec_()
def popupReadme(self): dialog = DialogDisplayText() dialog.setWindowTitle("Readme") dialog.txtDisplay.setHtml(self.readReadme()) dialog.show() dialog.exec_()