From: Chris Alfeld Date: 2006-04-14T23:17:38+09:00 Subject: Re: ruby/tk HTML_Widget and href's For anyone following this thread and interested, here's the third version of the sample code. This does work: ---- require 'tk' require 'tkextlib/tkHTML' def do_click(x,y) href = $HTML.href(x,y)[0] print href + "\n" if href end $HTML = Tk::HTML_Widget.new(TkRoot.new) Tk::HTML_Widget::ClippingWindow.new($HTML).bind('1', proc {|x,y| do_click(x,y)},"%x %y") $HTML.parse("click me") $HTML.pack Tk.mainloop ----