コード例 #1
0
class AboutDialog(QtGui.QDialog):
    """docstring for AboutDialog"""
    def __init__(self, parent=None):
        super(AboutDialog, self).__init__(parent)
        self.AboutDialog = Ui_AboutDialog()
        self.AboutDialog.setupUi(self)
        self.setWindowFlags(QtCore.Qt.Dialog |
                            QtCore.Qt.WindowSystemMenuHint |
                            QtCore.Qt.WindowTitleHint)
        self._initialize_dialog()
        self.ORG_NAME = app_info.__org_name__
        self.APP_NAME = app_info.__app_name__

    def _initialize_dialog(self):
        self.AboutDialog.lblAppVersion.setText(_tr("Versión {0}".format(app_info.__version__)))
コード例 #2
0
 def __init__(self, parent=None):
     super(AboutDialog, self).__init__(parent)
     self.AboutDialog = Ui_AboutDialog()
     self.AboutDialog.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog |
                         QtCore.Qt.WindowSystemMenuHint |
                         QtCore.Qt.WindowTitleHint)
     self._initialize_dialog()
     self.ORG_NAME = app_info.__org_name__
     self.APP_NAME = app_info.__app_name__