Method: Tk::BWidget::NoteBook#tabbind_append

Defined in:
lib/tkextlib/bwidget/notebook.rb

#tabbind_append(context, *args) ⇒ Object

def tabbind_append(*args)

_bind_append_for_event_class(Event_for_Tabs, [path, 'bindtabs'], *args)
self

end



70
71
72
73
74
75
76
77
78
79
80
# File 'lib/tkextlib/bwidget/notebook.rb', line 70

def tabbind_append(context, *args)
  #if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
  if TkComm._callback_entry?(args[0]) || !block_given?
    cmd = args.shift
  else
    cmd = Proc.new
  end
  _bind_append_for_event_class(Event_for_Tabs, [path, 'bindtabs'],
                               context, cmd, *args)
  self
end