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

The menu display code is inbuilt to the Tk::Text widget already (you get a default popup with cut, paste...). The ->menu method allows you to replace the popup menu, but the display code remains in-built. I've re-bound the <3> right-button so I can trap where the where the even happens, turn that into a line number, and pass it to the popup command.
  • Comment on Re^2: Tk and right-mouse popup menus under OSX

Replies are listed 'Best First'.
Re^3: Tk and right-mouse popup menus under OSX
by vkon (Curate) on Feb 15, 2011 at 20:56 UTC
    indeed, I was wondering whether right-click menu of Text widget is actually seen,

    glad that you've resolved your problem.