forked from openlp/openlp
pep fixes
This commit is contained in:
parent
69fca430b5
commit
dfcd95b9d9
@ -451,7 +451,7 @@ class ThemeForm(QtWidgets.QWizard, Ui_ThemeWizard, RegistryProperties):
|
|||||||
def on_image_path_edit_path_changed(self, new_path):
|
def on_image_path_edit_path_changed(self, new_path):
|
||||||
"""
|
"""
|
||||||
Handle the `pathEditChanged` signal from image_path_edit
|
Handle the `pathEditChanged` signal from image_path_edit
|
||||||
|
|
||||||
:param openlp.core.common.path.Path new_path: Path to the new image
|
:param openlp.core.common.path.Path new_path: Path to the new image
|
||||||
:rtype: None
|
:rtype: None
|
||||||
"""
|
"""
|
||||||
@ -461,7 +461,7 @@ class ThemeForm(QtWidgets.QWizard, Ui_ThemeWizard, RegistryProperties):
|
|||||||
def on_video_path_edit_path_changed(self, new_path):
|
def on_video_path_edit_path_changed(self, new_path):
|
||||||
"""
|
"""
|
||||||
Handle the `pathEditChanged` signal from video_path_edit
|
Handle the `pathEditChanged` signal from video_path_edit
|
||||||
|
|
||||||
:param openlp.core.common.path.Path new_path: Path to the new video
|
:param openlp.core.common.path.Path new_path: Path to the new video
|
||||||
:rtype: None
|
:rtype: None
|
||||||
"""
|
"""
|
||||||
|
@ -392,11 +392,11 @@ class ThemeManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ThemeManage
|
|||||||
theme_name = item.data(QtCore.Qt.UserRole)
|
theme_name = item.data(QtCore.Qt.UserRole)
|
||||||
export_path, filter_used = \
|
export_path, filter_used = \
|
||||||
FileDialog.getSaveFileName(self.main_window,
|
FileDialog.getSaveFileName(self.main_window,
|
||||||
translate('OpenLP.ThemeManager',
|
translate('OpenLP.ThemeManager',
|
||||||
'Save Theme - ({name})').format(name=theme_name),
|
'Save Theme - ({name})').format(name=theme_name),
|
||||||
Settings().value(self.settings_section + '/last directory export'),
|
Settings().value(self.settings_section + '/last directory export'),
|
||||||
translate('OpenLP.ThemeManager', 'OpenLP Themes (*.otz)'),
|
translate('OpenLP.ThemeManager', 'OpenLP Themes (*.otz)'),
|
||||||
translate('OpenLP.ThemeManager', 'OpenLP Themes (*.otz)'))
|
translate('OpenLP.ThemeManager', 'OpenLP Themes (*.otz)'))
|
||||||
self.application.set_busy_cursor()
|
self.application.set_busy_cursor()
|
||||||
if export_path:
|
if export_path:
|
||||||
Settings().setValue(self.settings_section + '/last directory export', export_path.parent)
|
Settings().setValue(self.settings_section + '/last directory export', export_path.parent)
|
||||||
@ -637,7 +637,6 @@ class ThemeManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ThemeManage
|
|||||||
"""
|
"""
|
||||||
Called by theme maintenance Dialog to save the theme and to trigger the reload of the theme list
|
Called by theme maintenance Dialog to save the theme and to trigger the reload of the theme list
|
||||||
|
|
||||||
|
|
||||||
:param Theme theme: The theme data object.
|
:param Theme theme: The theme data object.
|
||||||
:param openlp.core.common.path.Path image_source_path: Where the theme image is currently located.
|
:param openlp.core.common.path.Path image_source_path: Where the theme image is currently located.
|
||||||
:param openlp.core.common.path.Path image_destination_path: Where the Theme Image is to be saved to
|
:param openlp.core.common.path.Path image_destination_path: Where the Theme Image is to be saved to
|
||||||
|
Loading…
Reference in New Issue
Block a user