def __init__(self, fail_list):
"""
A dialog box that shows the failed downloads and any relevent information about them, such as: the user that
posted the content to reddit, the subreddit it was posted in, the title of the post, the url that failed and
a reason as to why it failed (ex: download or extraction error)
:param fail_list: A list supplied to the dialog of the failed content
"""
QtWidgets.QDialog.__init__(self)
self.setupUi(self)
self.settings_manager = Core.Injector.get_settings_manager()
geom = self.settings_manager.failed_downloads_dialog_geom
self.restoreGeometry(geom if geom is not None else self.saveGeometry())
for x in fail_list:
self.textBrowser.append(x)
self.textBrowser.append(' ')
self.buttonBox.accepted.connect(self.accept)
FailedDownloadsDialog.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录