"editor_did_init" gui hook not found

br's Avatar


25 Mar, 2020 12:26 PM

Hi, version is 2.1.24.
When attempting to use gui_hooks.editor_did_init, I get
AttributeError: module 'aqt.gui_hooks' has no attribute 'editor_did_init'.
I double checked on correct syntax, and other editor hooks like 'editor_did_load_note' work.

Maybe that hook was removed? It is still listed there though: https://github.com/ankitects/anki/blob/master/qt/tools/genhooks_gui.py

  1. Support Staff 1 Posted by Damien Elmes on 25 Mar, 2020 11:04 PM

    Damien Elmes's Avatar

    It was only added a few days ago, after the latest beta was built.

  2. 2 Posted by br on 26 Mar, 2020 08:10 AM

    br's Avatar

    My bad, please regard as resolved.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac