mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
a1a611cd1a
commit
e1bf592824
@ -1121,7 +1121,7 @@ class TemplateConfig(QWidget): # {{{
|
|||||||
|
|
||||||
tmpl = self.template
|
tmpl = self.template
|
||||||
try:
|
try:
|
||||||
v = validation_formatter.validate(tmpl)
|
validation_formatter.validate(tmpl)
|
||||||
return True
|
return True
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
error_dialog(self, _('Invalid template for {0}').format(self.name),
|
error_dialog(self, _('Invalid template for {0}').format(self.name),
|
||||||
|
@ -64,7 +64,7 @@ class TabbedDeviceConfig(QTabWidget):
|
|||||||
from DeviceOptionsGroupBox, are created to further group the options. The group
|
from DeviceOptionsGroupBox, are created to further group the options. The group
|
||||||
boxes can be coded to support any control type and dependencies between them.
|
boxes can be coded to support any control type and dependencies between them.
|
||||||
|
|
||||||
Set validate_before_accept to True if you want validation() to be called
|
Set validate_before_accept to True if you want validate() to be called
|
||||||
when OK is pressed
|
when OK is pressed
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user