def window_key_press(self, window, event, filepath): if gtk.gdk.keyval_name(event.keyval) == "Escape": self.window_deleted(window, event, filepath) window.destroy() return True if gtk.gdk.keyval_name(event.keyval) == "Return": self.window_deleted(window, event, filepath) utils.show_path(filepath) window.destroy() return True
def window_key_press(self, window, event, filepath): if Gdk.keyval_name(event.keyval) == "Escape": self.window_deleted(window, event, filepath) window.destroy() return True if Gdk.keyval_name(event.keyval) == "Return": self.window_deleted(window, event, filepath) utils.show_path(filepath) window.destroy() return True
def activate(self, leaf): finput = open(leaf.object, "rb") (foutput, fpath) = utils.get_safe_tempfile() try: docutils.core.publish_file(finput, destination=foutput, writer_name="html") finally: finput.close() foutput.close() utils.show_path(fpath)
def finish_action(filename): utils.show_path(filename) ctx.register_late_result(FileLeaf(filename), show=False)
def activate(self, leaf): fileloc = leaf.object parent = os.path.normpath(os.path.join(fileloc, os.path.pardir)) utils.show_path(parent)
def _finish_action(self, filename): utils.show_path(filename)
def _finish_action(self, filename): utils.show_path(filename) ctx = commandexec.DefaultActionExecutionContext() ctx.register_late_result(self.async_token, FileLeaf(filename), show=False)
def activate(self, leaf): utils.show_path(leaf.object)