MCPcopy
hub / github.com/srixivas/PcapXray / _spin_stop

Method _spin_stop

Source/Module/user_interface.py:425–431  ·  view source on GitHub ↗
(self, done_text: str = "", ok: bool = True)

Source from the content-addressed store, hash-verified

423 self._spin_job = self.base.after(80, self._spin_tick)
424
425 def _spin_stop(self, done_text: str = "", ok: bool = True) -> None:
426 if self._spin_job is not None:
427 self.base.after_cancel(self._spin_job)
428 self._spin_job = None
429 if self._spin_label.winfo_exists():
430 self._spin_label.config(fg=_DONE_COLOR if ok else _ERR_COLOR,
431 text=done_text)
432
433 def _run_in_thread(self, fn, *args) -> tuple[threading.Thread, list]:
434 """Run fn(*args) in a daemon thread; store any exception in exc_box[0]."""

Callers 3

_stop_liveMethod · 0.95
pcap_analyseMethod · 0.95
generate_graphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected