On Wed, Dec 18, 2013 at 5:36 AM, Nadav Horesh firstname.lastname@example.org:
Thank you Juan. IIt looks like the event caught by the CanvasToolBase are not whtn I am looking for (mouse click and keyboard events)
I'm not sure I follow. The canvas tools use matplotlib events because the image canvas is drawn with matplotlib. The `CanvasToolBase` class shows an example of using the tool's `connect_event` to connect to "key_press_event" (keyboard events). The `LineTool` class shows an example connecting to keyboard events through "button_press_event".
Note that this event system is only for the image canvas. If another widget (e.g. a slider) has focus, then the events are handled by Qt's infrastructure.
Thank you again,
2013/12/18 Juan Nunez-Iglesias email@example.com:
I don't have much experience with interactive tools, but I think this is
right place to start for examples:
You'll see that the LineProfile plugin uses the LineTool canvas tool:
Hopefully this helps, otherwise @tonysyu might be able to step in and
a bit more guidance.
On Wed, Dec 18, 2013 at 7:13 PM, Nadav Horesh firstname.lastname@example.org wrote:
I I started to build an interactive image exploration utility based on matplotlib. Recently, following a link on this list, I encountered skimage.viewer, and found that the plugins architecture matches my
I could not find how to link keyboard and mouse events (and maybe
to plugins. Any suggestions?
I am using version 0.93 on linux (I can install the pre 0.10, if needed)