Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
	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)
Exemple #4
0
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
Exemple #5
0
	def activate(self, leaf):
		fileloc = leaf.object
		parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
		utils.show_path(parent)
Exemple #6
0
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
Exemple #7
0
 def _finish_action(self, filename):
     utils.show_path(filename)
Exemple #8
0
	def _finish_action(self, filename):
		utils.show_path(filename)
		ctx = commandexec.DefaultActionExecutionContext()
		ctx.register_late_result(self.async_token, FileLeaf(filename),
				show=False)
Exemple #9
0
 def activate(self, leaf):
     fileloc = leaf.object
     parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
     utils.show_path(parent)
Exemple #10
0
	def activate(self, leaf):
		utils.show_path(leaf.object)