Hello again,
I'm not an official dev with commit ability (though I may be committable),
but I modified figure.py and blocking_input.py to allow us to do exactly
this. Any chance it could make it to the next release?

http://sites.google.com/site/jacksankey/files/matplotlib.zip?attredirects=0


Notes:

-It would be simple to extend this to allow us to assign the keyboard keys
as well.

-It's probably worth changing the logical order or add some extra logic so
that the user can't have one button assigned to two functions (this is
probably better to allow us to change *one* of the buttons and have the
others find slots accordingly)

-I can't seem to generate the button2 event (middle click) with my logitech
thumb-wheel mouse on XP

-I can't get any keyboard events to work even when the figure's focused and
I've been clicking for awhile.

Let me know if I can help. I certainly wouldn't mind committing this myself,
should the opportunity arise. :)

Regards,
-Jack

On Tue, Aug 11, 2009 at 4:09 PM, Jack Sankey <jack.san...@gmail.com> wrote:

> Hello,
> The new ginput is great, and I'm going to start using it instead of my
> original implementation. The one problem is on my (and many) laptops, it is
> in practice hard to middle click, and I often find myself accidentally
> clicking or removing a click.
>
> It would be nice (and should be straightforward) if there was a
> command-line argument or two to switch the roles of the mouse buttons, so we
> could type something like
>
> ginput(0,0, add=1, remove=3, finish=2)
>
> to swap the roles of the right and middle mouse buttons.
>
> Cheers!
> Jack
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to