more work

This commit is contained in:
Dominik Demuth 2024-01-01 11:38:32 +01:00
parent 5ad6456b16
commit c8afb2441f

View File

@ -34,9 +34,9 @@ class SciSpinBox(QtWidgets.QDoubleSpinBox):
new_value = self._prev_value
if new_value != 0.0:
new_value *= 10**(step/19.)
new_value *= 10**(step/99.)
else:
new_value = 0.001
new_value = 0.00001
self.setValue(new_value)
self.lineEdit().setText(f'{new_value:.3e}')