Namespace
- MODULE Tk::TkTable::ConfigMethod
- CLASS Tk::TkTable::BrowseCommand
- CLASS Tk::TkTable::CellCommand
- CLASS Tk::TkTable::CellTag
- CLASS Tk::TkTable::NamedCellTag
- CLASS Tk::TkTable::SelectionCommand
- CLASS Tk::TkTable::ValidateCommand
Methods
- #
- A
- B
- C
- D
- G
- H
- I
- P
- R
- S
- T
- V
- W
Included Modules
- Scrollable
- Tk::TkTable::ConfigMethod
- Tk::ValidateConfigure
Constants
PACKAGE_NAME | = | 'Tktable'.freeze |
TkCommandNames | = | ['table'.freeze].freeze |
WidgetClassName | = | 'Table'.freeze |
Class Public methods
package_name()
Link
package_version()
Link
Instance Public methods
__destroy_hook__()
Link
__validation_class_list()
Link
activate(idx)
Link
bbox(idx)
Link
border_dragto(x, y)
Link
border_mark(x, y)
Link
border_mark_col(x, y)
Link
border_mark_row(x, y)
Link
clear_all(first=None, last=None)
Link
clear_cache(first=None, last=None)
Link
clear_sizes(first=None, last=None)
Link
col_index(idx)
Link
curselection()
Link
curselection=(val)
Link
curvalue()
Link
curvalue=(val)
Link
delete_active(idx1, idx2=None)
Link
delete_cols(*args)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 562 def delete_cols(*args) # ?switches_array?, index, ?count? params = [] if args[0].kind_of?(Array) switches = args.shift switches.each{|k| params << "-#{k}"} end params << '--' params << tagid(args.shift) params.concat(args) tk_send('delete', 'cols', *params) self end
delete_rows(*args)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 574 def delete_rows(*args) # ?switches_array?, index, ?count? params = [] if args[0].kind_of?(Array) switches = args.shift switches.each{|k| params << "-#{k}"} end params << '--' params << tagid(args.shift) params.concat(args) tk_send('delete', 'rows', *params) self end
get(idx)
Link
get_area(idx1, idx2)
Link
height(row)
Link
height_list()
Link
Source: on GitHub
|Source: on GitHub
|
icursor()
Link
icursor_set(idx)
Link
index(idx)
Link
insert_active(idx, val)
Link
insert_cols(*args)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 643 def insert_cols(*args) # ?switches_array?, index, ?count? params = [] if args[0].kind_of?(Array) switches = args.shift switches.each{|k| params << "-#{k}"} end params << '--' params.concat(args) params << tagid(args.shift) tk_send('insert', 'cols', *params) self end
insert_rows(*args)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 655 def insert_rows(*args) # ?switches_array?, index, ?count? params = [] if args[0].kind_of?(Array) switches = args.shift switches.each{|k| params << "-#{k}"} end params << '--' params << tagid(args.shift) params.concat(args) tk_send('insert', 'rows', *params) self end
reread()
Link
def postscript(*args)
tk_send('postscript', *args)
end
row_index(idx)
Link
scan_dragto(x, y)
Link
scan_mark(x, y)
Link
see(idx)
Link
selection_anchor(idx)
Link
selection_clear(first, last=None)
Link
selection_clear_all()
Link
selection_include?(idx)
Link
selection_present()
Link
selection_set(first, last=None)
Link
set(*pairs)
Link
set_col(*pairs)
Link
set_height(*pairs)
Link
set_row(*pairs)
Link
set_spans(*pairs)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 809 def set_spans(*pairs) # idx, val, idx, val, ... args = [] 0.step(pairs.size-1, 2){|i| args << tagid(pairs[i]) val = pairs[i+1] if val.kind_of?(Array) args << val.join(',') else args << val end } tk_send('spans', *args) self end
set_width(*pairs)
Link
span(idx)
Link
spans()
Link
def set(*pairs) # idx, val, idx, val, … OR [idx, val], [idx, val], …
if pairs[0].kind_of?(Array)
# [idx, val], [idx, val], ...
args = []
pairs.each{|idx, val| args << tagid(idx) << val }
tk_send('set', *args)
else
# idx, val, idx, val, ...
args = []
0.step(pairs.size-1, 2){|i|
args << tagid(pairs[i])
args << pairs[i+1]
}
tk_send('set', *args)
end
self
end def #set_row(*pairs)
if pairs[0].kind_of?(Array)
# [idx, val], [idx, val], ...
args = []
pairs.each{|idx, val| args << tagid(idx) << val }
tk_send('set', 'row', *args)
else
# idx, val, idx, val, ...
args = []
0.step(pairs.size-1, 2){|i|
args << tagid(pairs[i])
args << pairs[i+1]
}
tk_send('set', 'row', *args)
end
self
end def #set_col(*pairs)
if pairs[0].kind_of?(Array)
# [idx, val], [idx, val], ...
args = []
pairs.each{|idx, val| args << idx << val }
tk_send('set', 'col', *args)
else
# idx, val, idx, val, ...
args = []
0.step(pairs.size-1, 2){|i|
args << tagid(pairs[i])
args << pairs[i+1]
}
tk_send('set', 'col', *args)
end
self
end
Also aliased as: span_list
tag_cell(tag, *cells)
Link
tag_col(tag, *cols)
Link
tag_col_reset(*cols)
Link
tag_delete(tag)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 901 def tag_delete(tag) tk_send('tag', 'delete', tagid(tag)) Tk::TkTable::CellTag::CellTagID_TBL.mutex.synchronize{ if Tk::TkTable::CellTag::CellTagID_TBL[@path] if tag.kind_of? Tk::TkTable::CellTag Tk::TkTable::CellTag::CellTagID_TBL[@path].delete(tag.id) else Tk::TkTable::CellTag::CellTagID_TBL[@path].delete(tag) end end } self end
tag_exist?(tag)
Link
tag_include?(tag, idx)
Link
tag_lower(tag, target=None)
Link
tag_names(pat=None)
Link
tag_raise(tag, target=None)
Link
tag_reset(*cells)
Link
tag_row(tag, *rows)
Link
tag_row_reset(*rows)
Link
tagid(tag)
Link
def #set_spans(*pairs)
if pairs[0].kind_of?(Array)
# [idx, val], [idx, val], ...
args = []
pairs.each{|idx, val|
args << tagid(idx)
if val.kind_of?(Array)
args << val.join(',')
else
args << val
end
}
tk_send('spans', *args)
else
# idx, val, idx, val, ...
args = []
0.step(pairs.size-1, 2){|i|
args << tagid(pairs[i])
val = pairs[i+1]
if val.kind_of?(Array)
args << val.join(',')
else
args << val
end
}
tk_send('spans', *args)
end
self
end
tagid2obj(tagid)
Link
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 871 def tagid2obj(tagid) Tk::TkTable::CellTag::CellTagID_TBL.mutex.synchronize{ if Tk::TkTable::CellTag::CellTagID_TBL.key?(@path) if Tk::TkTable::CellTag::CellTagID_TBL[@path].key?(tagid) Tk::TkTable::CellTag::CellTagID_TBL[@path][tagid] else tagid end else tagid end } end
validate(idx)
Link
width(row)
Link
width_list()
Link
window_delete(*args)
Link
window_move(from_idx, to_idx)
Link