def waitforbuttonpress(self, timeout=-<NUM_LIT:1>):
blocking_input = BlockingKeyMouseInput(self)<EOL>return blocking_input(timeout=timeout)<EOL>
call signature::

  waitforbuttonpress(self, timeout=-1)

Blocking call to interact with the figure.

This will return True is a key was pressed, False if a mouse
button was pressed and None if *timeout* was reached without
either being pressed.

If *timeout* is negative, does not timeout.