forked from openlp/openlp
aboutform: code standards
This commit is contained in:
parent
1fe2e31c1d
commit
9add95d2a5
@ -47,22 +47,21 @@ class AboutForm(QtGui.QDialog, Ui_AboutDialog):
|
||||
Do some initialisation stuff
|
||||
"""
|
||||
QtGui.QDialog.__init__(self, parent)
|
||||
applicationVersion = get_application_version()
|
||||
application_version = get_application_version()
|
||||
self.setupUi(self)
|
||||
about_text = self.about_text_edit.toPlainText()
|
||||
about_text = about_text.replace(u'<version>', applicationVersion[u'version'])
|
||||
if applicationVersion[u'build']:
|
||||
build_text = translate('OpenLP.AboutForm', ' build %s') % applicationVersion[u'build']
|
||||
about_text = about_text.replace(u'<version>', application_version[u'version'])
|
||||
if application_version[u'build']:
|
||||
build_text = translate('OpenLP.AboutForm', ' build %s') % application_version[u'build']
|
||||
else:
|
||||
build_text = u''
|
||||
about_text = about_text.replace(u'<revision>', build_text)
|
||||
self.about_text_edit.setPlainText(about_text)
|
||||
QtCore.QObject.connect(self.volunteer_button, QtCore.SIGNAL(u'clicked()'), self.onVolunteerButtonClicked)
|
||||
QtCore.QObject.connect(self.volunteer_button, QtCore.SIGNAL(u'clicked()'), self.on_volunteer_button_clicked)
|
||||
|
||||
def onVolunteerButtonClicked(self):
|
||||
def on_volunteer_button_clicked(self):
|
||||
"""
|
||||
Launch a web browser and go to the contribute page on the site.
|
||||
"""
|
||||
import webbrowser
|
||||
url = u'http://openlp.org/en/contribute'
|
||||
webbrowser.open_new(url)
|
||||
webbrowser.open_new(u'http://openlp.org/en/contribute')
|
||||
|
Loading…
Reference in New Issue
Block a user