From: "Alan (Ursus Major)" Date: 2002-11-02T15:16:35+09:00 Subject: strange warning Folks: I get this warning message when I run the code below. What am I doing wrong here? <> #----------------------from this code------------------------- require 'tk' # testing callback code for listbox cb = nil lb = TkListbox.new.pack 1.upto(3){|v| lb.insert('end',"entry #{v}")} lb.bind('ButtonRelease-1'){cb.call lb.get(lb.curselection[0]) if cb} cb = proc{|v| p v} Tk.mainloop #------------------------------------------------------------ Thanks, Alan