mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
4c036eeedd
commit
0630056139
@ -79,7 +79,6 @@ class MessageBox(QDialog, Ui_Dialog): # {{{
|
||||
|
||||
self.do_resize()
|
||||
|
||||
|
||||
def toggle_det_msg(self, *args):
|
||||
vis = unicode(self.det_msg_toggle.text()) == self.hide_det_msg
|
||||
self.det_msg_toggle.setText(self.show_det_msg if vis else
|
||||
@ -109,7 +108,7 @@ class MessageBox(QDialog, Ui_Dialog): # {{{
|
||||
self.bb.button(self.bb.Yes if self.default_yes else self.bb.No
|
||||
).setFocus(Qt.OtherFocusReason)
|
||||
except:
|
||||
pass# Buttons were changed
|
||||
pass # Buttons were changed
|
||||
else:
|
||||
self.bb.button(self.bb.Ok).setFocus(Qt.OtherFocusReason)
|
||||
return ret
|
||||
@ -360,7 +359,8 @@ class JobError(QDialog): # {{{
|
||||
self.pop()
|
||||
|
||||
def pop(self):
|
||||
if not self.queue or self.isVisible(): return
|
||||
if not self.queue or self.isVisible():
|
||||
return
|
||||
title, msg, det_msg = self.queue.pop(0)
|
||||
self.setWindowTitle(title)
|
||||
self.msg_label.setText(msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user