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

Class FileBrowser

source code

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

Dialog to display files contained on a TS3 filepath.

Instance Methods [hide private]
 
__init__(self, schid, cid, password='', path='/', parent=None, staticpath=False, readonly=False, downloaddir=None, iconpack=None)
Instantiates a new object.
source code
 
__del__(self) source code
 
_enableMenus(self, actlist) source code
 
_adjustMenu(self) source code
 
_adjustUi(self) source code
 
_showTransfers(self) source code
 
onPathChanged(self, newpath) source code
 
on_pathEdit_returnPressed(self) source code
 
on_iconButton_toggled(self, act) source code
 
on_detailedButton_toggled(self, act) source code
 
on_filterButton_clicked(self) source code
 
on_clearButton_clicked(self) source code
 
on_filterEdit_textChanged(self, newtext) source code
 
on_upButton_clicked(self) source code
 
on_homeButton_clicked(self) source code
 
refresh(self) source code
 
on_downloaddirButton_clicked(self) source code
 
showError(self, prefix, errcode, msg=None) source code
 
uploadFiles(self) source code
 
onServerErrorEvent(self, schid, errorMessage, error, returnCode, extraMessage) source code
 
selectedFiles(self) source code
 
currentItem(self, source=True) source code
 
_startDownload(self, collection) source code
 
downloadFiles(self, files=None) source code
 
createFolder(self) source code
 
deleteFiles(self, files=None) source code
 
on_table_customContextMenuRequested(self, pos) source code
 
on_list_customContextMenuRequested(self, pos) source code
 
viewDoubleClicked(self, idx) source code
 
on_openAction_triggered(self) source code
 
on_renameAction_triggered(self) source code
 
on_copyAction_triggered(self) 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='', path='/', parent=None, staticpath=False, readonly=False, downloaddir=None, iconpack=None)
(Constructor)

source code 

Instantiates a new object.

Parameters:
  • schid (int) - the id of the serverconnection handler
  • cid (int) - the id of the channel
  • password (str) - password to the channel, defaults to an empty string
  • path (str) - path to display, defaults to the root path
  • parent (QWidget) - parent of the dialog; optional keyword arg; defaults to None
  • staticpath (bool) - if set to True, the initial path can't be changed by the user; optional keyword arg; defaults to False
  • readonly (bool) - if set to True, the user can't download, upload or delete files, or create new directories; optional keyword arg; defaults to False
  • downloaddir (str) - directory to download files to; optional keyword arg; defaults to None; if set to None, the TS3 client's download directory is used
  • iconpack (ts3client.IconPack) - iconpack to load icons from; optional keyword arg; defaults to None; if set to None, the current iconpack is used
Overrides: object.__init__

_startDownload(self, collection)

source code 
Parameters:
  • collection (list[tuple(str, list[File])]) - list of tuples containing the download directory and the list of files to download to that directory