KeypressContainer๏ƒ

class eomaps.cb_container.KeypressContainer(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

Methods

__init__(m[,ย cb_cls,ย method])

add_temporary_artist(artist[,ย layer])

Make an artist temporary (remove it from the map at the next event).

forward_events(*args)

Forward callback-events from this Maps-object to other Maps-objects.

remove([callback])

Remove an attached callback from the figure.

set_execute_during_toolbar_action(q)

Set if callbacks should be executed during a toolbar action (e.g. pan/zoom).

set_execute_on_all_layers(q)

If True, callbacks of this container are executed even if the associated layer is not visible.

share_events(*args)

Share callback-events between this Maps-object and all other Maps-objects.

Attributes

execute_on_all_layers