Exemple #1
0
 def Copy(self):
     if not self.IsItemSelected():
         return
     globalVars.app.say(_("コピー"))
     c = clipboard.ClipboardFile()
     c.SetFileList(self.GetSelectedItems().GetItemPaths())
     c.SendToClipboard()
Exemple #2
0
 def Cut(self):
     if not self.IsItemSelected(): return
     globalVars.app.say(_("切り取り"))
     c = clipboard.ClipboardFile()
     c.SetOperation(clipboard.MOVE)
     c.SetFileList(self.GetSelectedItems().GetItemPaths())
     c.SendToClipboard()
Exemple #3
0
def paste(type):
    """typeにリストオブジェクトを受け取る。"""
    # clipBoardモジュールを使って貼り付けるファイルリストを取得
    c = clipboard.ClipboardFile()
    pasteList = c.GetFileList()
    # ファイルの追加
    listManager.addItems(pasteList, type)
    return
Exemple #4
0
 def Past(self):
     #クリップボードから情報取得し
     c = clipboard.ClipboardFile()
     target = c.GetFileList()
     if not target:
         dialog(_("エラー"), _("貼り付けるものがありません。"))
         return
     #end 貼り付ける物がない
     op = c.GetOperation()
     self.PastOperation(target, self.listObject.rootDirectory, op)
Exemple #5
0
 def Past(self):
     dest = self.listObject.rootDirectory
     # クリップボードから情報取得し
     c = clipboard.ClipboardFile()
     # コピー元、コピー先をそれぞれ設定
     target = list(map(lambda x: (x, x.replace(os.path.dirname(x), dest)), c.GetFileList()))
     if not target:
         dialog(_("エラー"), _("貼り付けるものがありません。"))
         return
     # end 貼り付ける物がない
     op = c.GetOperation()
     self.PastOperation(target, self.listObject.rootDirectory, op)
Exemple #6
0
import clipboard
c = clipboard.ClipboardFile()
# c.SetFileList(["C:\\git\\yncatgithub.pub"])
# c.SetOperation(clipboard.COPY)
# c.SendToClipboard()
c.ReceiveFromClipboard()
Exemple #7
0
def copy(fileList):
    c = clipboard.ClipboardFile()
    # ファイルの追加
    c.SetFileList(fileList)
    c.SendToClipboard()
    return