コード例 #1
0
ファイル: quickview.py プロジェクト: jchtt/kupfer-adds
 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
コード例 #2
0
ファイル: quickview.py プロジェクト: engla/kupfer
 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
コード例 #3
0
ファイル: rst.py プロジェクト: CharString/kupfer
	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)
コード例 #4
0
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
コード例 #5
0
ファイル: fileactions.py プロジェクト: sagivmalihi/kupfer
	def activate(self, leaf):
		fileloc = leaf.object
		parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
		utils.show_path(parent)
コード例 #6
0
ファイル: urlactions.py プロジェクト: engla/kupfer
 def finish_action(filename):
     utils.show_path(filename)
     ctx.register_late_result(FileLeaf(filename), show=False)
コード例 #7
0
ファイル: urlactions.py プロジェクト: chmouel/kupfer
 def _finish_action(self, filename):
     utils.show_path(filename)
コード例 #8
0
ファイル: urlactions.py プロジェクト: cjparsons74/kupfer
	def _finish_action(self, filename):
		utils.show_path(filename)
		ctx = commandexec.DefaultActionExecutionContext()
		ctx.register_late_result(self.async_token, FileLeaf(filename),
				show=False)
コード例 #9
0
 def activate(self, leaf):
     fileloc = leaf.object
     parent = os.path.normpath(os.path.join(fileloc, os.path.pardir))
     utils.show_path(parent)
コード例 #10
0
ファイル: fileactions.py プロジェクト: chmouel/kupfer
	def activate(self, leaf):
		utils.show_path(leaf.object)