From ad9d1df172f60f66721331d067dd8aae822bd94c Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 7 Jun 2019 22:51:19 +0200 Subject: [PATCH] pep8 --- openlp/core/display/render.py | 7 ++++--- openlp/core/ui/themewizard.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openlp/core/display/render.py b/openlp/core/display/render.py index cc252494f..0002d26e1 100644 --- a/openlp/core/display/render.py +++ b/openlp/core/display/render.py @@ -67,7 +67,6 @@ FOOTER_COPYRIGHT = 'Public Domain' CCLI_NO = '123456' - def remove_tags(text, can_remove_chords=False): """ Remove Tags from text for display @@ -462,7 +461,8 @@ class ThemePreviewRenderer(LogMixin, DisplayWindow): vars = { 'title': TITLE, 'authors_none_label': translate('OpenLP.Ui', 'Written by'), - 'authors_words_label': translate('SongsPlugin.AuthorType', 'Words', 'Author who wrote the lyrics of a song'), + 'authors_words_label': translate('SongsPlugin.AuthorType', 'Words', + 'Author who wrote the lyrics of a song'), 'authors_words': [AUTHOR], 'copyright': FOOTER_COPYRIGHT, 'ccli_license': Settings().value('core/ccli number'), @@ -734,7 +734,8 @@ class ThemePreviewRenderer(LogMixin, DisplayWindow): :param text: The text to check. It may contain HTML tags. """ self.clear_slides() - self.run_javascript('Display.addTextSlide("v1", "{text}", "Dummy Footer");'.format(text=text.replace('"', '\\"')), is_sync=True) + self.run_javascript('Display.addTextSlide("v1", "{text}", "Dummy Footer");' + .format(text=text.replace('"', '\\"')), is_sync=True) does_text_fits = self.run_javascript('Display.doesContentFit();', is_sync=True) return does_text_fits diff --git a/openlp/core/ui/themewizard.py b/openlp/core/ui/themewizard.py index 1414e3f46..a60e0dc7f 100644 --- a/openlp/core/ui/themewizard.py +++ b/openlp/core/ui/themewizard.py @@ -34,6 +34,7 @@ from openlp.core.widgets.edits import PathEdit from openlp.core.widgets.layouts import AspectRatioLayout from openlp.core.display.render import ThemePreviewRenderer + class Ui_ThemeWizard(object): """ The Create/Edit theme wizard