MCPcopy Create free account
hub / github.com/LabPy/lantz / update_progress_bar

Function update_progress_bar

examples/scanfrequency-gui.py:52–54  ·  view source on GitHub ↗
(new, old)

Source from the content-addressed store, hash-verified

50 progress = main.findChild((QtGui.QWidget, ), 'progress')
51
52 def update_progress_bar(new, old):
53 fraction = (new.magnitude - start.value()) / (stop.value() - start.value())
54 progress.setValue(fraction * 100)
55
56 inst.frequency_changed.connect(update_progress_bar)
57

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected