def showAbout(self): """ Dialogue a propos """ Dialog = QtGui.QDialog(self) ui = Ui_About() ui.setupUi(Dialog) Dialog.show()
def about(self): if self.about_window is not None: self.about_window.show() return self.about_window = QtWidgets.QDialog() ui = Ui_About() ui.setupUi(self.about_window) self.about_window.show()
def __init__(self, parent=None, isolate=True): if not isolate: super(window_about, self).__init__(parent) else: super(window_about, self).__init__(None) self.ui = Ui_About() self.parent = parent self.ui.setupUi(self) self.ui.label_version.setText(self.parent.version)
class window_about(QWidget): def __init__(self, parent=None, isolate=True): if not isolate: super(window_about, self).__init__(parent) else: super(window_about, self).__init__(None) self.ui = Ui_About() self.parent = parent self.ui.setupUi(self) self.ui.label_version.setText(self.parent.version) def chk_new(self): # chk = self.parent.updateChk() # if chk is not None: # if not chk: self.parent.messageBox(2, "確認機能は停止しています", self)