remove

keypress.remove(callback=None)

Remove an attached callback from the figure.

Parameters:

callback (int, str or tuple) –

if str: the name of the callback to remove

(<function_name>_<count>__<layer>__<key>)