(new, old)
| 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 |