In Files

  • tk/lib/tkextlib/blt/tabnotebook.rb

Parent

Namespace

Class/Module Index [+]

Quicksearch

Tk::BLT::Tabnotebook

Public Instance Methods

get_id(index) click to toggle source
Alias for: get_tab
get_tab(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/tabnotebook.rb, line 78
def get_tab(index)
  if (idx = tk_send_without_enc('id', tagindex(index))).empty?
    nil
  else
    Tk::BLT::Tabset::Tab.id2obj(self, idx)
  end
end
            
Also aliased as: get_id
get_tabobj(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/tabnotebook.rb, line 87
def get_tabobj(index)
  if (idx = tk_send_without_enc('id', tagindex(index))).empty?
    nil
  else
    Tk::BLT::Tabnotebook::Tab.new(self, nil, idx)
  end
end
            
insert(pos=nil, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/tabnotebook.rb, line 97
def insert(pos=nil, keys={})
  if pos.kind_of?(Hash)
    keys = pos
    pos = nil
  end
  pos = 'end' if pos.nil?
  Tk::BLT::Tabnotebook::Tab.new(self, nil,
                                tk_send('insert', tagindex(pos), keys))

end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.