in reply to Tk and right-mouse popup menus under OSX

Did you check the setting of 'Emulate 3-Button Mouse'(or something like that) in your X11 preferences. If this is set, you should get <3> events by pressing 'apple'-<1>:

chris$ perl -MTk -e'tkinit->bind("<3>",sub{print "3\n"});MainLoop' 3 3

Cheers, Christoph

Replies are listed 'Best First'.
Re^2: Tk and right-mouse popup menus under OSX
by ron7 (Beadle) on Feb 14, 2011 at 22:26 UTC
    Thanks, that pointed me in the right direction--and sorry I left out a piece of information: I was using the Trackpad, not an actual mouse.

    The fix is to enable "Secondary Click" in the System Preferences (You have an option of left or right corners of the Trackpad). OSX then behaves like Linux (The context menu staus up as long as the right button is held down; releasing the button over a popup menu item activates the item).

    I then belatedly tried the app with an actual mouse and the right button click worked as expected--regardless of the "Secondary Click" setting.