mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
dce5f748ed
commit
6f8f15cd01
@ -92,7 +92,7 @@ class ValueTableWidgetItem(QTableWidgetItem):
|
|||||||
self._is_editable = False
|
self._is_editable = False
|
||||||
super().__init__(('{' + _('template') + '}') if is_template else txt)
|
super().__init__(('{' + _('template') + '}') if is_template else txt)
|
||||||
if not is_template and txt not in all_values:
|
if not is_template and txt not in all_values:
|
||||||
icon = "dialog_error.png"
|
icon = 'dialog_error.png'
|
||||||
self.setToolTip(_("The value {} doesn't exist in the library").format(txt))
|
self.setToolTip(_("The value {} doesn't exist in the library").format(txt))
|
||||||
self._is_editable = True
|
self._is_editable = True
|
||||||
else:
|
else:
|
||||||
@ -567,7 +567,7 @@ class TbIconRulesTab(LazyConfigWidgetBase, Ui_Form):
|
|||||||
column = idx.column()
|
column = idx.column()
|
||||||
if column in (VALUE_COLUMN, ICON_COLUMN, FOR_CHILDREN_COLUMN):
|
if column in (VALUE_COLUMN, ICON_COLUMN, FOR_CHILDREN_COLUMN):
|
||||||
self.rules_table.edit(idx)
|
self.rules_table.edit(idx)
|
||||||
self.check_button_state(None) # Here to make buttons enabled/disabled
|
self.check_button_state(None) # Here to make buttons enabled/disabled
|
||||||
|
|
||||||
def delete_rule(self):
|
def delete_rule(self):
|
||||||
idx = self.rules_table.currentIndex()
|
idx = self.rules_table.currentIndex()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user