1

I would like to cancel file transfer in python but I couldn't find any solution. I use OnFileTransferStatusChanged function for it but I don't know how to actually cancel the file transfer.


import Skype4Py
import sys
import time
import os
from datetime import datetime

skype = Skype4Py.Skype(Transport = "dbus")
skype.Attach()

def OnFile(file, stts):
    # cancel file transfer
    # todo

def Main():
    while True:
        skype.OnFileTransferStatusChanged = OnFile
        time.sleep(0.5)
Main()
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435

0 Answers0