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

Method on_loop_done

lantz/ui/blocks/scan.py:248–255  ·  view source on GitHub ↗
(self, cancelled)

Source from the content-addressed store, hash-verified

246 self.recalculate()
247
248 def on_loop_done(self, cancelled):
249 self.widget.start_stop.setText('Start')
250 self.widget.start_stop.setEnabled(True)
251 self.widget.start_stop.setChecked(False)
252 if self.widget.progress_bar.maximum():
253 self.widget.progress_bar.setValue(self.widget.progress_bar.maximum())
254 else:
255 self.widget.progress_bar.setMaximum(1)
256
257
258if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected