MCPcopy Create free account
hub / github.com/geekcomputers/Python / on_key

Function on_key

Collatz Sequence/Collaze-Visualize.py:31–34  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

29 stop = False
30
31 def on_key(event):
32 nonlocal stop
33 if event.key == ' ':
34 stop = True
35
36 fig = plt.figure()
37 fig.canvas.mpl_connect("key_press_event", on_key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected