From: neil Date: 2002-04-24T22:16:55+09:00 Subject: Re: Minor Tk bug on Windows? "Hal E. Fulton" wrote: > > Hello... > > This is something that has been annoying me > for some time... I'd like to confirm that it really > is a bug (as it appears to me). > > A TkButton can take the focus when you press > the tab key (as you'd expect), but pressing > Enter then does not activate the button. > > I confess I'm still using 1.6.1 most of the time. :) > This is Win98. > > Apparently the only way to press a TkButton is > to use the mouse... > > Can anyone confirm/deny? > > Thanks, > Hal Fulton > Hello, A bind something like this should work, TkButton.new(root){ text 'Close' bind "Return", proc{ root.destroy} command proc{ root.destroy } pack } Neil Walker -- http://www.quill.plus.com