forked from openlp/openlp
PEP
This commit is contained in:
parent
b2f5f2e9e2
commit
c0915fa8b6
@ -48,7 +48,7 @@ class PathEdit(QtWidgets.QWidget):
|
|||||||
:type parent: QWidget or None
|
:type parent: QWidget or None
|
||||||
|
|
||||||
:param dialog_caption: Used to customise the caption in the QFileDialog.
|
:param dialog_caption: Used to customise the caption in the QFileDialog.
|
||||||
:param dialog_caption: str
|
:type dialog_caption: str
|
||||||
|
|
||||||
:param default_path: The default path. This is set as the path when the revert button is clicked
|
:param default_path: The default path. This is set as the path when the revert button is clicked
|
||||||
:type default_path: str
|
:type default_path: str
|
||||||
|
@ -230,7 +230,7 @@ def update_reference_separators():
|
|||||||
REFERENCE_MATCHES['full'] = \
|
REFERENCE_MATCHES['full'] = \
|
||||||
re.compile(r'^\s*(?!\s)(?P<book>[\d]*[^\d\.]+)\.*(?<!\s)\s*'
|
re.compile(r'^\s*(?!\s)(?P<book>[\d]*[^\d\.]+)\.*(?<!\s)\s*'
|
||||||
r'(?P<ranges>(?:{range_regex}(?:{sep_l}(?!\s*$)|(?=\s*$)))+)\s*$'.format(
|
r'(?P<ranges>(?:{range_regex}(?:{sep_l}(?!\s*$)|(?=\s*$)))+)\s*$'.format(
|
||||||
range_regex=range_regex, sep_l=REFERENCE_SEPARATORS['sep_l']), re.UNICODE)
|
range_regex=range_regex, sep_l=REFERENCE_SEPARATORS['sep_l']), re.UNICODE)
|
||||||
|
|
||||||
|
|
||||||
def get_reference_separator(separator_type):
|
def get_reference_separator(separator_type):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -69,7 +69,7 @@ class Ui_SongUsageDetailDialog(object):
|
|||||||
self.file_horizontal_layout.setSpacing(8)
|
self.file_horizontal_layout.setSpacing(8)
|
||||||
self.file_horizontal_layout.setContentsMargins(8, 8, 8, 8)
|
self.file_horizontal_layout.setContentsMargins(8, 8, 8, 8)
|
||||||
self.file_horizontal_layout.setObjectName('file_horizontal_layout')
|
self.file_horizontal_layout.setObjectName('file_horizontal_layout')
|
||||||
self.report_path_edit = PathEdit(self.file_group_box, path_type = PathType.Directories, show_revert=False)
|
self.report_path_edit = PathEdit(self.file_group_box, path_type=PathType.Directories, show_revert=False)
|
||||||
self.file_horizontal_layout.addWidget(self.report_path_edit)
|
self.file_horizontal_layout.addWidget(self.report_path_edit)
|
||||||
self.vertical_layout.addWidget(self.file_group_box)
|
self.vertical_layout.addWidget(self.file_group_box)
|
||||||
self.button_box = create_button_box(song_usage_detail_dialog, 'button_box', ['cancel', 'ok'])
|
self.button_box = create_button_box(song_usage_detail_dialog, 'button_box', ['cancel', 'ok'])
|
||||||
|
Loading…
Reference in New Issue
Block a user