def _reveal(self): filePath = self.getFilePath() if filePath: revealFile(filePath, self.logger) elif self._down: openFile(self._targetDir, self.logger) elif self._currentFile and os.path.exists(self._currentFile): revealFile(self._currentFile, self.logger)
def _itemDoubleClicked(self, item, col): widget = self._transferList.itemWidget(item, col) if widget.isFinished() and widget.isSuccessful(): filePath = widget.getFilePath() if filePath: openFile(widget.getFilePath(), self.logger)