Package ts3widgets :: Module filetransfer :: Class FileTransferDialog
[hide private]
[frames] | no frames]

Class FileTransferDialog

source code

PythonQt.QtGui.QDialog --+
                         |
            object --+   |
                     |   |
   pytson.Translatable --+
                         |
                        FileTransferDialog

Dialog to display filetransfers from/to a ts3 channel.

Instance Methods [hide private]
 
__init__(self, schid, cid, password, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
on_closeButton_clicked(self) source code
 
on_cleanupButton_clicked(self) source code
int
addUpload(self, path, localfile, overwrite, resume)
Adds an upload.
source code
int
addDownload(self, thefile, downloaddir, overwrite, resume)
Adds a download.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from pytson.Translatable (private): _tr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, schid, cid, password, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addUpload(self, path, localfile, overwrite, resume)

source code 

Adds an upload.

Parameters:
  • path (str) - path to upload the file to
  • localfile (str) - path to the file to upload
  • overwrite (bool) - set to True to overwrite an existing file
  • resume (bool) - set to True to resume a previous upload
Returns: int
the filetransfer id

addDownload(self, thefile, downloaddir, overwrite, resume)

source code 

Adds a download.

Parameters:
  • thefile (File) - remote file to download
  • downloaddir (str) - path to the download directory
  • overwrite (bool) - set to True to overwrite an existing file
  • resume (bool) - set to True to resume a previous download
Returns: int
the filetransfer id