Class Tk::Tile::TNotebook
In: tk/lib/tkextlib/tile/tnotebook.rb
Parent: TkWindow

Methods

Included Modules

TkItemConfigMethod Tk::Tile::TileWidget

Constants

TkCommandNames = ['tnotebook'.freeze].freeze
WidgetClassName = 'TNotebook'.freeze

External Aliases

itemcget -> tabcget
itemconfigure -> tabconfigure
itemconfiginfo -> tabconfiginfo
current_itemconfiginfo -> current_tabconfiginfo

Public Instance methods

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 35
  def __item_methodcall_optkeys  # { key=>method, ... }

    {}
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 66
  def add(child, keys=nil)
    if keys && keys != None
      tk_send_without_enc('add', _epath(child), *hash_kv(keys))
    else
      tk_send_without_enc('add', _epath(child))
    end
    self
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 61
  def enable_traversal()
    tk_call_without_end('tile::enableNotebookTraversal', @path)
    self
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 75
  def forget(idx)
    tk_send('forget', idx)
    self
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 80
  def index(idx)
    number(tk_send('index', idx))
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 84
  def select(idx)
    tk_send('select', idx)
    self
  end

[Source]

# File tk/lib/tkextlib/tile/tnotebook.rb, line 89
  def tabs
    list(tk_send('tabs'))
  end

[Validate]