Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 4
0
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
Exemplo n.º 5
0
	def activate(self, leaf):
		fileloc = leaf.object
		parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
		utils.show_path(parent)
Exemplo n.º 6
0
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
Exemplo n.º 7
0
 def _finish_action(self, filename):
     utils.show_path(filename)
Exemplo n.º 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)
Exemplo n.º 9
0
 def activate(self, leaf):
     fileloc = leaf.object
     parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
     utils.show_path(parent)
Exemplo n.º 10
0
	def activate(self, leaf):
		utils.show_path(leaf.object)