diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index ce0fdc1f9..b383b8b2e 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -275,7 +275,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too btn = self._addButton( icon, cmd, - tip=tip, + title_attribute=tip, label=label, id=id, toggleable=toggleable, @@ -288,15 +288,13 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too self, icon: str | None, cmd: str, - tip: str = "", + title_attribute: str = "", label: str = "", id: str | None = None, toggleable: bool = False, disables: bool = True, rightside: bool = True, ) -> str: - title_attribute = tip - if icon: if icon.startswith("qrc:/"): iconstr = icon