forked from openlp/openlp
pep8
This commit is contained in:
parent
4074d110ff
commit
ad9d1df172
@ -67,7 +67,6 @@ FOOTER_COPYRIGHT = 'Public Domain'
|
|||||||
CCLI_NO = '123456'
|
CCLI_NO = '123456'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def remove_tags(text, can_remove_chords=False):
|
def remove_tags(text, can_remove_chords=False):
|
||||||
"""
|
"""
|
||||||
Remove Tags from text for display
|
Remove Tags from text for display
|
||||||
@ -462,7 +461,8 @@ class ThemePreviewRenderer(LogMixin, DisplayWindow):
|
|||||||
vars = {
|
vars = {
|
||||||
'title': TITLE,
|
'title': TITLE,
|
||||||
'authors_none_label': translate('OpenLP.Ui', 'Written by'),
|
'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],
|
'authors_words': [AUTHOR],
|
||||||
'copyright': FOOTER_COPYRIGHT,
|
'copyright': FOOTER_COPYRIGHT,
|
||||||
'ccli_license': Settings().value('core/ccli number'),
|
'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.
|
:param text: The text to check. It may contain HTML tags.
|
||||||
"""
|
"""
|
||||||
self.clear_slides()
|
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)
|
does_text_fits = self.run_javascript('Display.doesContentFit();', is_sync=True)
|
||||||
return does_text_fits
|
return does_text_fits
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ from openlp.core.widgets.edits import PathEdit
|
|||||||
from openlp.core.widgets.layouts import AspectRatioLayout
|
from openlp.core.widgets.layouts import AspectRatioLayout
|
||||||
from openlp.core.display.render import ThemePreviewRenderer
|
from openlp.core.display.render import ThemePreviewRenderer
|
||||||
|
|
||||||
|
|
||||||
class Ui_ThemeWizard(object):
|
class Ui_ThemeWizard(object):
|
||||||
"""
|
"""
|
||||||
The Create/Edit theme wizard
|
The Create/Edit theme wizard
|
||||||
|
Loading…
Reference in New Issue
Block a user