Pressing the rightmost button on my 3 button mouse generates a
Tk event saying button 2 was pressed, while pressing the middle
button generates an event saying button 3 was pressed. This is
on Aqua Tk 8.4.1. Other applications on my Mac, such as the X
server identify the rightmost button as button 3 and the middle
button as button 2. Only Tk appears to reverse buttons 2 and 3.
The following wish8.4 script will display the button number
associated with button presses.
bind . <ButtonPress> {puts "%b"}
Pressing my 3 mouse buttons from left to right, prints 1 3 2.
Nobody/Anonymous ( nobody ) - 2003-01-28 23:13
4
Open
None
Daniel A. Steffen
66. Aqua Window Operations
obsolete: 8.4.1
Public
|
Date: 2008-05-28 22:51 Logged In: NO |
|
Date: 2003-09-22 22:42 Logged In: NO |
|
Date: 2003-07-30 20:23 Logged In: YES |
|
Date: 2003-02-05 19:39 Logged In: NO |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use