keypress

class eomaps._cb_container.keypress_container(m, cb_cls=None, method='keypress')

Callbacks that are executed if you press a key on the keyboard.

attach : accessor for callbacks.

Executing the functions will attach the associated callback to the map!

get : accessor for return-objects

A container to provide easy-access to the return-values of the callbacks.

remove : remove prviously added callbacks from the map
forward_events : forward events to connected maps-objects
share_events : share events between connected maps-objects (e.g. forward both ways)
set_sticky_modifiers : define keypress-modifiers that remain active after release
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>)