示例#1
0
	def GetOperation(self):
		with clipboardHelper.Clipboard() as c:
			fmt=c.register_format("Preferred DropEffect")
			buf=c.get_data(fmt)
			op=struct.unpack('i',buf)[0]
		#end with
		return op
示例#2
0
 def SendToClipboard(self):
     with clipboardHelper.Clipboard() as c:
         c.empty()
         c.set_data(clipboardHelper.ClipboardFormats.drop_handle,
                    bytes(self.byte))
         fmt = c.register_format("Preferred DropEffect")
         c.set_data(fmt, struct.pack('i', self.operation))
示例#3
0
文件: base.py 项目: yncat/falcon
 def FullpathCopy(self):
     t = self.GetSelectedItems().GetItemPaths()
     globalVars.app.say(_("フルパスをコピー"), interrupt=True)
     t = "\n".join(t)
     with clipboardHelper.Clipboard() as c:
         c.set_unicode_text(t)
示例#4
0
文件: base.py 项目: yncat/falcon
 def NameCopy(self):
     globalVars.app.say(_("ファイル名をコピー"), interrupt=True)
     t = self.GetSelectedItems().GetItemNames()
     t = "\n".join(t)
     with clipboardHelper.Clipboard() as c:
         c.set_unicode_text(t)
示例#5
0
	def ReceiveFromClipboard(self):
		with clipboardHelper.Clipboard() as c:
			s=c.get_dropped_files()
示例#6
0
	def GetFileList(self):
		with clipboardHelper.Clipboard() as c:
			lst=c.get_dropped_files()
		#end
		return lst
示例#7
0
	def speak(self, text, **options):
		with clipboardHelper.Clipboard() as c:
			c.set_unicode_text(text)