def __init__(self):
super(DownloaderDlg, self).__init__()
self.ui = Ui_DownloaderDlg()
self.ui.setupUi(self)
self.setWindowTitle(self.tr("Tools downloader"))
icon = QIcon("./icons/097-download.png")
self.setWindowIcon(icon)
self.tw = self.findChild(QTreeWidget, "downloads_treeWidget")
self.statusLabel = self.findChild(QLabel, "statusLabel")
bbox = self.findChild(QDialogButtonBox, "downloads_buttonBox")
bbox.setStandardButtons(QDialogButtonBox.Close)
self.install_button = QPushButton(self.tr("Install selected"), self.tw)
self.install_button.clicked.connect(self.installSelected)
bbox.addButton(self.install_button, QDialogButtonBox.ActionRole)
self.loadToolsJSON(self.tw)
评论列表
文章目录