- Pep8 fixes

This commit is contained in:
suutari-olli 2016-05-10 14:13:41 +03:00
parent 46e7ad4983
commit 524adae71f
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ class Ui_ExceptionDialog(object):
Translate the widgets on the fly.
"""
# Note that bugs mail is not clicable, but it adds the blue color and underlining and makes the test copyable.
#exception_dialog.setWindowTitle(translate('OpenLP.ExceptionDialog', 'Error Occurred'))
exception_dialog.setWindowTitle(translate('OpenLP.ExceptionDialog', 'Error Occurred'))
# Explanation text,   adds a small space before: If possible, write in English.
self.description_explanation.setText(
translate('OpenLP.ExceptionDialog', '<strong>Please describe what you were trying to do.</strong> '
@ -108,7 +108,7 @@ class Ui_ExceptionDialog(object):
'information to a <strong>file</strong> and<br>'
'send it from your <strong>mail on browser</strong> via an <strong>attachement.</strong><br><br>'
'<strong>Thank you<strong> for being part of making OpenLP better!<br>'
).format(first_part = exception_part1))
).format(first_part=exception_part1))
self.send_report_button.setText(translate('OpenLP.ExceptionDialog', 'Send E-Mail'))
self.save_report_button.setText(translate('OpenLP.ExceptionDialog', 'Save to File'))
self.attach_tile_button.setText(translate('OpenLP.ExceptionDialog', 'Attach File'))

View File

@ -200,7 +200,7 @@ class ExceptionForm(QtWidgets.QDialog, Ui_ExceptionDialog, RegistryProperties):
self.__button_state(False)
self.description_word_count.setText(
translate('OpenLP.ExceptionDialog', '{count} characters from the minimum description remaining.'
).format(count = count))
).format(count=count))
def on_attach_file_button_clicked(self):
"""