def __init__(self, parent): QDialog.__init__(self, parent) self.ui = Ui_About() self.ui.setupUi(self) self.connect(self.ui.btnClose, SIGNAL('clicked()'), SLOT('close()')) self.connect(self.ui.btnLicense, SIGNAL('clicked()'), self.loadLicense) self.connect(self.ui.btnCredits, SIGNAL('clicked()'), self.loadCredits)
class AboutDialog(QDialog): def __init__(self, parent): QDialog.__init__(self, parent) self.ui = Ui_About() self.ui.setupUi(self) self.connect(self.ui.btnClose, SIGNAL('clicked()'), SLOT('close()')) self.connect(self.ui.btnLicense, SIGNAL('clicked()'), self.loadLicense) self.connect(self.ui.btnCredits, SIGNAL('clicked()'), self.loadCredits) def loadLicense(self): LicenseDialog(self).exec_() def loadCredits(self): CreditsDialog(self).exec_()
def __init__(self, parent): QDialog.__init__(self, parent) self.ui=Ui_About() self.ui.setupUi(self) self.connect(self.ui.btnClose, SIGNAL('clicked()'), SLOT('close()')) self.connect(self.ui.btnLicense, SIGNAL('clicked()'), self.loadLicense) self.connect(self.ui.btnCredits, SIGNAL('clicked()'), self.loadCredits)
class AboutDialog(QDialog): def __init__(self, parent): QDialog.__init__(self, parent) self.ui=Ui_About() self.ui.setupUi(self) self.connect(self.ui.btnClose, SIGNAL('clicked()'), SLOT('close()')) self.connect(self.ui.btnLicense, SIGNAL('clicked()'), self.loadLicense) self.connect(self.ui.btnCredits, SIGNAL('clicked()'), self.loadCredits) def loadLicense(self): LicenseDialog(self).exec_() def loadCredits(self): CreditsDialog(self).exec_()