All progress bar arguments int

This commit is contained in:
Joseph Timothy Foley 2024-04-02 16:22:07 +02:00
parent a81ad7c041
commit be7b92f61e

View File

@ -263,9 +263,10 @@ class QSpectrumAnalyzerMainWindow(QtWidgets.QMainWindow, Ui_QSpectrumAnalyzerMai
def update_progress(self, value):
"""Update progress bar"""
value *= 1000
# progress bar needs all values in int
value = int(value * 1000) #resolution is thousandths
value_max = int(self.intervalSpinBox.value() * 1000)
if value_max < 1000:
return