From: Kero van Gelder Date: 2001-09-11T02:52:00+09:00 Subject: [ruby-talk:21035] Re: Tk popup. Cannot get notification of selection > I can find no way to be notified when a popup menu entry is > selected. Has anyone used the Ruby/Tk popup menu? The command > option is invoked BEFORE selection, when the menu is posted. The > TkVariable is set sometime AFTER the selection, but with no > notification. The <> virtual event spoken of in the > docs is not invoked, at least not with the name 'MenuSelect'. > I'm a a total loss. Thanks ahead for any help. (I am attempting > this on both Windows and Linux.) That one's in my tutorial already :) http://members.chello.nl/~k.vangelder/ruby/learntk/index.html Try to catch "", Ruby already adds `<' and `>' to it. As it does for "Any-Key", which is "" in Tk. I had to look that up in the bindings, 'coz indeed it is not documented anywhere. Enjoy! Kero. +--- Kero ------------------------------ kero@chello.nl ---+ | Don't split your mentality without thinking twice | | Proud like a God -- Guano Apes | +--- M38c ------- http://members.chello.nl/~k.vangelder ---+