mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1ad3081514
commit
c01e5411f3
@ -46,7 +46,6 @@ class ProgressDialog(QDialog, Ui_Dialog):
|
||||
return self.bar.value()
|
||||
return property(fget=fget, fset=fset)
|
||||
|
||||
|
||||
def set_min(self, min):
|
||||
self.bar.setMinimum(min)
|
||||
|
||||
@ -55,11 +54,12 @@ class ProgressDialog(QDialog, Ui_Dialog):
|
||||
|
||||
@dynamic_property
|
||||
def max(self):
|
||||
def fget(self): return self.bar.maximum()
|
||||
def fset(self, val): self.bar.setMaximum(val)
|
||||
def fget(self):
|
||||
return self.bar.maximum()
|
||||
def fset(self, val):
|
||||
self.bar.setMaximum(val)
|
||||
return property(fget=fget, fset=fset)
|
||||
|
||||
|
||||
def _canceled(self, *args):
|
||||
self.canceled = True
|
||||
self.button_box.setDisabled(True)
|
||||
@ -86,7 +86,7 @@ class BlockingBusy(QDialog):
|
||||
self._layout = QVBoxLayout()
|
||||
self.setLayout(self._layout)
|
||||
self.msg = QLabel(msg)
|
||||
#self.msg.setWordWrap(True)
|
||||
# self.msg.setWordWrap(True)
|
||||
self.font = QFont()
|
||||
self.font.setPointSize(self.font.pointSize() + 8)
|
||||
self.msg.setFont(self.font)
|
||||
@ -110,4 +110,4 @@ class BlockingBusy(QDialog):
|
||||
return QDialog.accept(self)
|
||||
|
||||
def reject(self):
|
||||
pass # Cannot cancel this dialog
|
||||
pass # Cannot cancel this dialog
|
||||
|
Loading…
x
Reference in New Issue
Block a user