From: nagai@... Date: 2002-04-26T12:12:40+09:00 Subject: Re: Minor Tk bug on Windows? Hi, From: "Hal E. Fulton" Subject: Re: Minor Tk bug on Windows? Date: Thu, 25 Apr 2002 19:51:46 +0900 Message-ID: <002601c1ec47$a55db6e0$0300a8c0@austin.rr.com> hal9000> 1. How can I fix radio buttons so that when I move hal9000> the focus to one (by tabbing), it is selected without hal9000> my having to hit the space bar? hal9000> I tried hal9000> bind "FocusIn", myproc hal9000> but it crashed and burned the app (irrespective of hal9000> what the proc contained). ??? Does the following script crash? ----------------------------- require 'tk' v = TkVariable.new (1..3).each{|i| TkRadioButton.new { text "Button #{i}" value i variable v bind 'FocusIn', proc{v.value=i} pack } } Tk.mainloop ----------------------------- -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)