MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / waitforbuttonpress

Function waitforbuttonpress

site-packages/matplotlib/pyplot.py:708–718  ·  view source on GitHub ↗

Blocking call to interact with the figure. This will wait for *n* key or mouse clicks from the user and return a list containing True's for keyboard clicks and False's for mouse clicks. If *timeout* is negative, does not timeout.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

706
707@docstring.copy_dedent(Figure.waitforbuttonpress)
708def waitforbuttonpress(*args, **kwargs):
709 """
710 Blocking call to interact with the figure.
711
712 This will wait for *n* key or mouse clicks from the user and
713 return a list containing True's for keyboard clicks and False's
714 for mouse clicks.
715
716 If *timeout* is negative, does not timeout.
717 """
718 return gcf().waitforbuttonpress(*args, **kwargs)
719
720
721## Putting things in figures ##

Callers

nothing calls this directly

Calls 2

gcfFunction · 0.85
waitforbuttonpressMethod · 0.80

Tested by

no test coverage detected