import sys pylib = os.path.join(os.path.dirname(__file__), "..", "..", "pylib") sys.path.append(pylib) from tools.hookslib import Hook, update_file # Hook list ###################################################################### hooks = [ # Reviewing ################### Hook( name="overview_did_refresh", args=["overview: aqt.overview.Overview"], doc="""Allow to update the overview window. E.g. add the deck name in the title.""", ), Hook( name="overview_will_render_content", args=[ "overview: aqt.overview.Overview", "content: aqt.overview.OverviewContent", ], doc="""Used to modify HTML content sections in the overview body 'content' contains the sections of HTML content the overview body will be updated with. When modifying the content of a particular section, please make sure your changes only perform the minimum required edits to make your add-on work.
import sys pylib = os.path.join(os.path.dirname(__file__), "..", "..", "pylib") sys.path.append(pylib) from tools.hookslib import Hook, update_file # Hook list ###################################################################### hooks = [ # Reviewing ################### Hook( name="overview_did_refresh", args=["overview: aqt.overview.Overview"], doc="""Allow to update the overview window. E.g. add the deck name in the title.""", ), Hook( name="deck_browser_did_render", args=["deck_browser: aqt.deckbrowser.DeckBrowser"], doc= """Allow to update the deck browser window. E.g. change its title.""", ), Hook( name="reviewer_did_show_question", args=["card: Card"], legacy_hook="showQuestion", legacy_no_args=True, ), Hook(
pylib = os.path.join(os.path.dirname(__file__), "..", "..", "pylib") sys.path.append(pylib) from tools.hookslib import Hook, update_file # Hook list ###################################################################### hooks = [ # Reviewing ################### Hook( name="overview_did_refresh", args=["overview: aqt.overview.Overview"], doc="""Allow to update the overview window. E.g. add the deck name in the title.""", ), Hook( name="overview_will_render_content", args=[ "overview: aqt.overview.Overview", "content: aqt.overview.OverviewContent", ], doc="""Used to modify HTML content sections in the overview body 'content' contains the sections of HTML content the overview body will be updated with. When modifying the content of a particular section, please make sure your changes only perform the minimum required edits to make your add-on work.
import sys pylib = os.path.join(os.path.dirname(__file__), "..", "..", "pylib") sys.path.append(pylib) from tools.hookslib import Hook, update_file # Hook list ###################################################################### hooks = [ # Reviewing ################### Hook( name="reviewer_did_show_question", args=["card: Card"], legacy_hook="showQuestion", legacy_no_args=True, ), Hook( name="reviewer_did_show_answer", args=["card: Card"], legacy_hook="showAnswer", legacy_no_args=True, ), Hook( name="reviewer_will_show_context_menu", args=["reviewer: aqt.reviewer.Reviewer", "menu: QMenu"], legacy_hook="Reviewer.contextMenuEvent", ), Hook( name="reviewer_will_end",