--- a/RadonMetrics/RawMetricsDialog.py Sun Apr 25 16:35:17 2021 +0200 +++ b/RadonMetrics/RawMetricsDialog.py Sun Apr 25 16:41:47 2021 +0200 @@ -39,7 +39,7 @@ @param parent reference to the parent widget @type QWidget """ - super(RawMetricsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.Window) @@ -279,11 +279,9 @@ self.__lastFileItem = None self.checkProgressLabel.setPath(self.tr("Preparing files...")) - progress = 0 argumentsList = [] - for filename in self.files: - progress += 1 + for progress, filename in enumerate(self.files, start=1): self.checkProgress.setValue(progress) QApplication.processEvents()