From: Hidetoshi NAGAI Date: 2006-04-14T12:32:11+09:00 Subject: Re: ruby/tk HTML_Widget and href's From: "Chris Alfeld" Subject: Re: ruby/tk HTML_Widget and href's Date: Fri, 14 Apr 2006 12:16:10 +0900 Message-ID: > Perhaps it would be worth adding bind_x, bind_append_x, bindtags_x, > etc. to the HTML_Widget class to bind to the .x subwidget. It is, > incidentally, the only subwidget. What do you think? I don't think so. The .x subwidget is a widget of 'HtmlClip' class. On Ruby/Tk, you can get a Tk::HTML_Widget::ClippingWindow object for the subwidget. ----------------------------------------------- h = Tk::HTML_Widget.new cw = Tk::HTML_Widget::ClippingWindow.new(h) cw.bind('2', proc{puts "click Button-2 ! "}) ----------------------------------------------- -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)