def execAction(self):
if not self.action is None:
action = getattr(self.controller, self.action)
location = self.current_dir
selection = self.getSelection()
if len(selection) > 0:
location = selection[0]
if len(self.items_selected) > 0:
if tkMessageBox.askokcancel(self.action.capitalize(), "Are you sure? This action can be permanent"):
if action(self.items_selected, location):
self.action = None
else:
tkMessageBox.showerror("Ops", "An error occurred :(")
self.reloadMainList()
评论列表
文章目录