mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Make keys parameter requiring func parameter in _addButton explicit
This commit is contained in:
parent
fce536f205
commit
cf1240bb18
1 changed files with 18 additions and 16 deletions
|
@ -252,6 +252,7 @@ class Editor:
|
||||||
"""Assign func to bridge cmd, register shortcut, return button"""
|
"""Assign func to bridge cmd, register shortcut, return button"""
|
||||||
if func:
|
if func:
|
||||||
self._links[cmd] = func
|
self._links[cmd] = func
|
||||||
|
|
||||||
if keys:
|
if keys:
|
||||||
|
|
||||||
def on_activated():
|
def on_activated():
|
||||||
|
@ -273,6 +274,7 @@ class Editor:
|
||||||
self.widget,
|
self.widget,
|
||||||
activated=on_hotkey,
|
activated=on_hotkey,
|
||||||
)
|
)
|
||||||
|
|
||||||
btn = self._addButton(
|
btn = self._addButton(
|
||||||
icon,
|
icon,
|
||||||
cmd,
|
cmd,
|
||||||
|
|
Loading…
Reference in a new issue