From: Paul Lutus Date: 2006-09-28T00:40:17+09:00 Subject: Re: Trying to understand menus in ruby/tk through examples Mer Gilmartin wrote: > Can anyone explain why with the first two 'command' lines > the program works. but with the third 'command' line it doesnt? / ... > 'command' => proc { p "Load from database"; } > add 'command' > 'label' => 'Exit program', > 'underline' => 0, > 'command' => proc{exit} There's not enough code to create a working example, so this is just a guess, but I would ask where "exit' is defined. -- Paul Lutus http://www.arachnoid.com