def __init__(self): QtCore.QObject.__init__(self) elements = utils.loadUi(self._ABOUT_UI, parent=utils.window()) self.dialog = elements["Dialog"] self.dialog.setWindowTitle("About %s" % getProgramName()) elements["buttonClose"].clicked.connect(self.dialog.close) elements["labelName"].setText(NAME.upper()) elements["labelVersion"].setText(VERSION) elements["labelDescription"].setText(DESCRIPTION) elements["labelCopyright"].setText(COPYRIGHT) elements["labelWebsite"].setText(self._LINK % (WEBSITE_URL, WEBSITE_URL)) elements["labelLicensing"].setText(self._LINK % (LICENSING_URL, LICENSING_URL))
def testGetProgramName(self): self.assertEqual(_PROGRAM_NAME, config.getProgramName())
## in the file CONTRIBUTION_AGREEMENT.pdf or see http://tadek.comarch.com ## ## or write to [email protected] ## ## ## ################################################################################ from PySide import QtCore from tadek.core.config import VERSION, NAME, getProgramName import utils DESCRIPTION = '''%s is an advanced TADEK client using the PySide library. TADEK is a novel approach to automatic testing and remote control of applications over accessibility and similar technologies.''' \ % getProgramName() COPYRIGHT = '''Copyright © 2011,2012 Comarch S.A.<br> All rights reserved.''' WEBSITE_URL = "http://tadek.comarch.com/" LICENSING_URL = "http://tadek.comarch.com/licensing" class About(QtCore.QObject): ''' An About dialog class. ''' _ABOUT_UI = "about_dialog.ui" _LINK = "<a href=\"%s\">%s</a>" def __init__(self): QtCore.QObject.__init__(self)