def METHOD_NAME(self) -> None:
    self.codetext.text.config(state=tk.NORMAL)
    self.codetext.text.delete(1.0, tk.END)
    self.codetext.text.config(state=tk.DISABLED)
    for item in self.tree.get_children():
        self.tree.delete(item)
    self.app.statusbar.clear_alerts()