示例#1
0
文件: editor.py 项目: yinminshcn/anki
 def oncallback(arg):
     if not self.note:
         return
     self.setupForegroundButton()
     self.checkValid()
     if focusTo is not None:
         self.web.setFocus()
     gui_hooks.editor_did_load_note(self)
示例#2
0
文件: editor.py 项目: rye761/anki
 def oncallback(arg: Any) -> None:
     if not self.note:
         return
     self.setupForegroundButton()
     # we currently do this synchronously to ensure we load before the
     # sidebar on browser startup
     self._update_duplicate_display(note_fields_status)
     if focusTo is not None:
         self.web.setFocus()
     gui_hooks.editor_did_load_note(self)
示例#3
0
文件: main.py 项目: djohn833/Anki2
 def oncallback(arg):
     if not self.note:
         return
     self.setupForegroundButton()
     self.checkValid()
     if focusTo is not None:
         self.web.setFocus()
     try:
         from aqt import gui_hooks
         gui_hooks.editor_did_load_note(self)
     except:
         runHook("loadNote", self)