Method: Tk::Itk::Component#bindinfo

Defined in:
lib/tkextlib/itk/incr_tk.rb

#bindinfo(*args) ⇒ Object



411
412
413
414
415
416
417
418
419
420
421
# File 'lib/tkextlib/itk/incr_tk.rb', line 411

def bindinfo(*args)
  unless @widget
    begin
      @widget = window(tk_call(@master, 'component', @component))
      @path = @widget.path
    rescue
      fail RuntimeError, 'component is not assigned to a widget'
    end
  end
  @widget.bindinfo(*args)
end