def delete_proj(self, _=None): if not self.tree.focus().isnumeric(): return if messagebox.askyesno(parent=self, title=get_name("ask_conf_del_proj_title"), message=get_name("ask_conf_del_proj_text")): delete_folder(path=os_path.split(self.projects[int(self.tree.focus()) - 1])[0]) for child in self.winfo_children(): child.destroy() self.projects = [] self.selected_proj = None self.draw_elements()
def delete_proj(self, _=None): if not self.tree.focus().isnumeric(): return if messagebox.askyesno(parent=self, title=get_name("ask_conf_del_proj_title"), message=get_name("ask_conf_del_proj_text")): delete_folder( path=os_path.split(self.projects[int(self.tree.focus()) - 1])[0]) for child in self.winfo_children(): child.destroy() self.projects = [] self.selected_proj = None self.draw_elements()
def delete_proj(self, _=None): if messagebox.askyesno(parent=self.master, title=get_name("ask_conf_del_proj_title"), message=get_name("ask_conf_del_proj_text")): delete_folder(path=os_path.split(self.project_file)[0]) self.cmd_close_project()