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

Method on_loop_done

lantz/ui/blocks/loop.py:221–228  ·  view source on GitHub ↗
(self, cancelled)

Source from the content-addressed store, hash-verified

219 self.recalculate()
220
221 def on_loop_done(self, cancelled):
222 self.widget.start_stop.setText('Start')
223 self.widget.start_stop.setEnabled(True)
224 self.widget.start_stop.setChecked(False)
225 if self.widget.progress_bar.maximum():
226 self.widget.progress_bar.setValue(self.widget.progress_bar.maximum())
227 else:
228 self.widget.progress_bar.setMaximum(1)
229
230
231if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected