Namespace
- CLASS Tk::BLT::Tabset::NamedTab
- CLASS Tk::BLT::Tabset::Tab
Methods
- #
- A
- D
- F
- G
- H
- I
- M
- N
- P
- S
- T
- V
- X
Included Modules
Constants
TkCommandNames | = | ['::blt::tabset'.freeze].freeze |
WidgetClassName | = | 'Tabset'.freeze |
Instance Public methods
__boolval_optkeys()
Link
__destroy_hook__()
Link
delete(first, last=None)
Link
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 327 def delete(first, last=None) tk_send('delete', tagindex(first), tagindex(last)) if first.kind_of?(Tk::BLT::Tabset::Tab) TabID_TBL.mutex.synchronize{ TabID_TBL[@path].delete(first.id) } end # middle tabs of the range are unknown if last.kind_of?(Tk::BLT::Tabset::Tab) TabID_TBL.mutex.synchronize{ TabID_TBL[@path].delete(last.id) } end self end
focus(index)
Link
get_tab(index)
Link
get_tabobj(index)
Link
index(str)
Link
index_name(tab)
Link
insert(pos, tab, keys={})
Link
insert_tabs(pos, *tabs)
Link
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 374 def insert_tabs(pos, *tabs) pos = 'end' if pos.nil? if tabs[-1].kind_of?(Hash) keys = tabs.pop else keys = {} end fail ArgumentError, 'no tabs is given' if tabs.empty? tabs.map!{|tab| tagid(tab)} tk_send('insert', tagindex(pos), *(tabs + [keys])) tabs.collect{|tab| Tk::BLT::Tabset::Tab.new(self, nil, tagid(tab))} end
invoke(index)
Link
move_after(index, base_idx)
Link
move_before(index, base_idx)
Link
nearest(x, y)
Link
perforation_activate(mode)
Link
perforation_highlight(index, *args)
Link
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 408 def perforation_highlight(index, *args) if args.empty? # index --> mode tk_send('perforation', 'highlight', index) elsif args.size == 1 # args[0] --> mode tk_send('perforation', 'highlight', tagindex(index), args[0]) else # Error: call to get Tcl's error message tk_send('perforation', 'highlight', tagindex(index), *args) end self end
perforation_invoke(index=nil)
Link
scan_dragto(x, y)
Link
scan_mark(x, y)
Link
see(index)
Link
select(index)
Link
size()
Link
tab_dockall()
Link
tab_ids(pat=None)
Link
tab_names(pat=None)
Link
tab_objs(pat=None)
Link
tab_pageheight()
Link
tab_pagewidth()
Link
tab_tearoff(index, parent=None)
Link
tabbind(tag, context, *args)
Link
def tabbind(tag, context, cmd=Proc.new, *args)
_bind([path, "bind", tagid(tag)], context, cmd, *args)
self
end
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 295 def tabbind(tag, 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([path, "bind", tagid(tag)], context, cmd, *args) self end
tabbind_append(tag, context, *args)
Link
def #tabbind_append(tag, context, cmd=Proc.new, *args)
_bind_append([path, "bind", tagid(tag)], context, cmd, *args)
self
end
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 309 def tabbind_append(tag, 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([path, "bind", tagid(tag)], context, cmd, *args) self end
tabbind_remove(tag, context)
Link
tabbindinfo(tag, context=nil)
Link
tagid(tab)
Link
tagindex(tab)
Link