From: Josef Wolf Date: 2006-09-08T02:30:44+09:00 Subject: Re: How to properly bind context menus to canvas in Ruby/Tk? On Thu, Sep 07, 2006 at 11:41:55PM +0900, Morton Goldberg wrote: > On Sep 7, 2006, at 1:40 AM, Josef Wolf wrote: > >On Thu, Sep 07, 2006 at 10:31:00AM +0900, Morton Goldberg wrote: > >>On Sep 6, 2006, at 12:50 PM, Josef Wolf wrote: > >>>On Wed, Sep 06, 2006 at 04:00:45AM +0900, Morton Goldberg wrote: > >I _never_ see two different menus unless I introduce the > >handled_by_root flag. > > You _can_ see different menus if you change the posted version of > your code to assign each menu to a different variable. I can't > comment on your original code -- I've never seen it. But your posted > code will work much better if you use different variables for each > menu. Please try it yourself and see what happens. Well, I tried and I see different menus only when I use different variables _and_ modify the code to use the handled_by_root flag. This is probably because "dismissing a menu" has different effects in OS-X than on KDE.