For Programmers: Free Programming Magazines  


Home > Archive > Tcl > May 2006 > Re: Tk strange mouse button mapping









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Tk strange mouse button mapping
Donal K. Fellows

2006-05-31, 8:13 am

blacksqr wrote:
> After much debugging and tearing out of hair, I realized that the
> right-click was being interpreted as a <Button-3> event.


Tk's always said that the Right button is button 3 on all platforms
(well, except perhaps the Mac; that's not a platform I know in detail)
as that is something that was adopted wholesale from its Unix/X11
heritage (where mice had three buttons, men were real men, women were
real women, and small furry creatures from Alpha Centauri were real
small furry creatures from Alpha Centauri). That makes it (probably) a
bug in the script creating the GUI itself. If it is your script, fix the
problem, lather, rinse, repeat. Otherwise, gently remind the author that
they've made a minor error... ;-)

Donal.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com