mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
b0f30ce66a
commit
b5c70f1b9b
@ -159,7 +159,7 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
self.series = SeriesEdit(self)
|
||||
self.clear_series_button = QToolButton(self)
|
||||
self.clear_series_button.setToolTip(
|
||||
_('Clear series') )
|
||||
_('Clear series'))
|
||||
self.clear_series_button.clicked.connect(self.series.clear)
|
||||
self.series_index = SeriesIndexEdit(self, self.series)
|
||||
self.basic_metadata_widgets.extend([self.series, self.series_index])
|
||||
@ -289,7 +289,7 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
if callable(self.set_current_callback):
|
||||
self.set_current_callback(id_)
|
||||
# Commented out as it doesn't play nice with Next, Prev buttons
|
||||
#self.fetch_metadata_button.setFocus(Qt.OtherFocusReason)
|
||||
# self.fetch_metadata_button.setFocus(Qt.OtherFocusReason)
|
||||
|
||||
# Miscellaneous interaction methods {{{
|
||||
def update_window_title(self, *args):
|
||||
@ -332,7 +332,8 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
|
||||
def cover_from_format(self, *args):
|
||||
ext = self.formats_manager.get_selected_format()
|
||||
if ext is None: return
|
||||
if ext is None:
|
||||
return
|
||||
if ext == 'pdf':
|
||||
return self.get_pdf_cover()
|
||||
try:
|
||||
@ -455,7 +456,6 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
if d.cover_pixmap is not None:
|
||||
self.cover.current_val = pixmap_to_data(d.cover_pixmap)
|
||||
|
||||
|
||||
# }}}
|
||||
|
||||
def apply_changes(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user