From: Hidetoshi NAGAI Date: 2006-09-27T03:23:11+09:00 Subject: Re: Problem with TkMenu::add_cascade From: matthias@kl-mailer.de Subject: Problem with TkMenu::add_cascade Date: Tue, 26 Sep 2006 16:12:32 +0900 Message-ID: <20060926071227.1E4F5E30E005@vps1773.vps1773.my-v-server.de> > The code works nearly as expected, menu appears an has correct content. > If i click on "Foo", text "foo" is written to the console, but if i > click on > "Bar" nothing happens :( > Any idea what's going wrong? > > Ruby: ruby 1.8.5 (2006-08-25) [i486-linux] > Linux: Linux version 2.6.12 (root@louipaz) (gcc version 3.3.6 (Debian > 1:3.3.6-13)) That is NOT a bug of Ruby/Tk. Tcl/Tk will give you a same result. Probably, your trouble depends on the relationship between the menu and the cascade menu. Please try to make the cascade menu as a daughter of the menu (e.g. "sub = TkMenu.new(menu)"). ^^^^ -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)