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

Class FileCollisionDialog

source code

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

Dialog to inform about a filecollision and requests input how to handle it.

Instance Methods [hide private]
 
__init__(self, localfile, remotefile, isdownload, multi, parent=None)
Instantiates a new dialog.
source code
 
on_overwriteButton_clicked(self) source code
 
on_resumeButton_clicked(self) source code
 
on_skipButton_clicked(self) source code
 
on_skipallButton_clicked(self) source code
 
on_cancelButton_clicked(self) source code

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

Class Methods [hide private]
 
getAction(cls, localfile, remotefile, isdownload, multi, parent=None)
Convenience function to execute (blocks) the dialog.
source code

Inherited from pytson.Translatable (private): _tr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getAction(cls, localfile, remotefile, isdownload, multi, parent=None)
Class Method

source code 

Convenience function to execute (blocks) the dialog.

Parameters:
  • localfile (str) - the path to the local file
  • remotefile (File) - the remote file
  • isdownload (bool) - set to True if remotefile should be downloaded
  • multi (bool) - set to True, if there are multiple files which could collide
  • parent (QWidget) - parent widget of the dialog; optional; defaults to None

__init__(self, localfile, remotefile, isdownload, multi, parent=None)
(Constructor)

source code 

Instantiates a new dialog.

Parameters:
  • localfile (str) - the path to the local file
  • remotefile (File) - the remote file
  • isdownload (bool) - set to True if remotefile should be downloaded
  • multi (bool) - set to True, if there are multiple files which could collide
  • parent (QWidget) - parent widget of the dialog; optional; defaults to None
Overrides: object.__init__