예제 #1
0
class ACAboutDialog(QtGui.QDialog):

    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_ACAboutDialog()
        self.ui.setupUi(self)
        self.license = None
        self.credits = None

    @QtCore.pyqtSlot()
    def credits(self):
        if not self.credits:
            self.credits = ACTextDialog(self)
            self.credits.setText(open(os.path.join(settings.PACKAGE_PATH,
                                            'data', 'AUTHORS')).read())
        self.credits.show()

    @QtCore.pyqtSlot()
    def license(self):
        if not self.license:
            self.license = ACTextDialog(self)
            self.license.setText(open(os.path.join(settings.PACKAGE_PATH,
                                            'data', 'COPYING')).read())
        self.license.show()
예제 #2
0
 def license(self):
     if not self.license:
         self.license = ACTextDialog(self)
         self.license.setText(open(os.path.join(settings.PACKAGE_PATH,
                                         'data', 'COPYING')).read())
     self.license.show()
예제 #3
0
 def credits(self):
     if not self.credits:
         self.credits = ACTextDialog(self)
         self.credits.setText(open(os.path.join(settings.PACKAGE_PATH,
                                         'data', 'AUTHORS')).read())
     self.credits.show()