app.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:FuME 作者: fupadev 项目源码 文件源码
def download_match(self):
        date_from = self.dateEdit_3.date()
        if self.actionZeitraum.isChecked():
            date_to = self.dateEdit_4.date()
        else:
            date_to = date_from

        options = {
            'region': self.comboBox.currentText(),
            'date-from': date_from,
            'date-to': date_to,
            'database-path': self.dbPath,
            'parent': self
        }

        if self.comboBox.currentText() == 'Alle':
            QtWidgets.QMessageBox.warning(self, QtWidgets.qApp.tr("Region wählen"),
                                          QtWidgets.qApp.tr("Bitte zuerst eine Region wählen.\n\n"
                                                            "Ok drücken um fortzufahren."),
                                          QtWidgets.QMessageBox.Ok)
            return
        else:
            self.downloadProcessor = DownloadProcessor(options)

        # Connections
        self.downloadProcessor.started.connect(lambda: self.pushButton_5.setEnabled(False))
        self.downloadProcessor.finished.connect(lambda: self.pushButton_5.setEnabled(True))
        self.downloadProcessor.finished.connect(self.sqlmodel_calendar.select)
        self.downloadProcessor.finished.connect(self.tableView.resizeColumnsToContents)
        self.downloadProcessor.loggerSignal.connect(self.logDialog.add)
        self.downloadProcessor.statusBarSignal.connect(self.statusBar.showMessage)

        self.downloadProcessor.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号