mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
37319b8503
commit
9e4383c776
@ -44,9 +44,9 @@ class Customize(QFrame, Ui_Frame):
|
|||||||
clear.clicked.connect(partial(self.clear_clicked, which=x))
|
clear.clicked.connect(partial(self.clear_clicked, which=x))
|
||||||
|
|
||||||
def clear_clicked(self, which=0):
|
def clear_clicked(self, which=0):
|
||||||
button = getattr(self, 'button%d'%which)
|
button = getattr(self, 'button%d'%which)
|
||||||
button.setText(_('None'))
|
button.setText(_('None'))
|
||||||
setattr(self, 'shortcut%d'%which, None)
|
setattr(self, 'shortcut%d'%which, None)
|
||||||
|
|
||||||
def custom_toggled(self, checked):
|
def custom_toggled(self, checked):
|
||||||
for w in ('1', '2'):
|
for w in ('1', '2'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user