def METHOD_NAME(self, hook: Hook) -> None:
    self.editing = True
    self.hook = hook
    self.name.METHOD_NAME(hook.file)
    self.codetext.text.delete(1.0, tk.END)
    self.codetext.text.insert(tk.END, hook.data)
    state_name = hook.state.name
    self.state.METHOD_NAME(state_name)