All progress bar arguments int
This commit is contained in:
parent
a81ad7c041
commit
be7b92f61e
@ -263,7 +263,8 @@ class QSpectrumAnalyzerMainWindow(QtWidgets.QMainWindow, Ui_QSpectrumAnalyzerMai
|
|||||||
|
|
||||||
def update_progress(self, value):
|
def update_progress(self, value):
|
||||||
"""Update progress bar"""
|
"""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)
|
value_max = int(self.intervalSpinBox.value() * 1000)
|
||||||
|
|
||||||
if value_max < 1000:
|
if value_max < 1000:
|
||||||
|
Loading…
Reference in New Issue
Block a user