default of ‘labelcommand2’ option
default of ‘labelcommand’ option
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 990
def addBWidgetComboBox(name=None)
Tk.tk_call('::tablelist::addBWidgetComboBox', name)
end
with the BWidget package
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 982
def addBWidgetEntry(name=None)
Tk.tk_call('::tablelist::addBWidgetEntry', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 986
def addBWidgetSpinBox(name=None)
Tk.tk_call('::tablelist::addBWidgetSpinBox', name)
end
with the multi-entry package Mentry is a library extension
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1032
def addDateMentry(format, separator, gmt=false, name=None)
if gmt && gmt != None
gmt = '-gmt'
else
gmt = None
end
Tk.tk_call('::tablelist::addDateMentry', format, separator, gmt, name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1050
def addDateTimeMentry(format, date_sep, time_sep, gmt=false, name=None)
if gmt && gmt != None
gmt = '-gmt'
else
gmt = None
end
Tk.tk_call('::tablelist::addDateTimeMentry',
format, date_sep, time_sep, gmt, name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1060
def addFixedPointMentry(count1, count2, comma=false, name=None)
if comma && comma != None
comma = '-comma'
else
comma = None
end
Tk.tk_call('::tablelist::addFixedPoingMentry', count1, count2, comma, name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1069
def addIPAddrMentry(name=None)
Tk.tk_call('::tablelist::addIPAddrMentry', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1019
def addIncrCombobox(name=None)
Tk.tk_call('::tablelist::addIncrCombobox', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1001
def addIncrDateTimeWidget(type, seconds=false, name=None)
# type := 'datefield'|'dateentry'|timefield'|'timeentry'
if seconds && seconds != None
seconds = '-seconds'
else
seconds = None
end
Tk.tk_call('::tablelist::addDateTimeWidget', type, seconds, name)
end
with the Iwidgets ([incr Widgets]) package
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 997
def addIncrEntryfield(name=None)
Tk.tk_call('::tablelist::addIncrEntry', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1015
def addIncrSpinint(name=None)
Tk.tk_call('::tablelist::addIncrSpinint', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1011
def addIncrSpinner(name=None)
Tk.tk_call('::tablelist::addIncrSpinner', name)
end
with Bryan Oakley’s combobox package
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1026
def addOakleyCombobox(name=None)
Tk.tk_call('::tablelist::addOakleyCombobox', name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 1041
def addTimeMentry(format, separator, gmt=false, name=None)
if gmt && gmt != None
gmt = '-gmt'
else
gmt = None
end
Tk.tk_call('::tablelist::addTimeMentry', format, separator, gmt, name)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 975
def convEventFields(descendant, x, y)
window(Tk.tk_call('::tablelist::convEventFields', descendant, x, y))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 970
def getTablelistColumn(descendant)
num_or_str(Tk.tk_call('::tablelist::getTablelistColumn', headerlabel))
end
helper commands
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 966
def getTablelistPath(descendant)
window(Tk.tk_call('::tablelist::getTablelistPath', descendant))
end
# File tk/lib/tkextlib/tcllib/tablelist_tile.rb, line 28
def self.get_current_theme
Tk.tk_call('::tablelist::getCurrentTheme')
end
# File tk/lib/tkextlib/tcllib/tablelist_tile.rb, line 32
def self.get_theme_list
TkComm.simplelist(Tk.tk_call('::tablelist::getThemes'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 19
def self.package_name
PACKAGE_NAME
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 23
def self.package_version
begin
TkPackage.require(self.package_name)
rescue
''
end
end
commands related to tile Themems
# File tk/lib/tkextlib/tcllib/tablelist_tile.rb, line 24
def self.set_theme(theme)
Tk.tk_call('::tablelist::setTheme', theme)
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 282
def activate(index)
tk_send('activate', _to_idx(index))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 287
def activate_cell(index)
tk_send('activatecell', _to_idx(index))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 855
def addToSortColumns_with_event_generate(idx)
tk_call('::tablelist::addToSortColumns', @path, _to_idx(idx))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 310
def bbox(index)
list(tk_send('bbox', _to_idx(index)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 314
def bodypath
window(tk_send('bodypath'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 318
def bodytag
TkBindTag.new_by_name(tk_send('bodytag'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 322
def cancel_editing
tk_send('cancelediting')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 345
def cellindex(idx)
_from_idx(tk_send('cellindex', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 349
def cellselection_anchor(idx)
tk_send('cellselection', 'anchor', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 354
def cellselection_clear(first, last=nil)
if first.kind_of?(Array)
tk_send('cellselection', 'clear', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('cellselection', 'clear', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 365
def cellselection_includes(idx)
bool(tk_send('cellselection', 'includes', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 369
def cellselection_set(first, last=nil)
if first.kind_of?(Array)
tk_send('cellselection', 'set', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('cellselection', 'set', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 397
def columncount
number(tk_send('columncount'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 401
def columnindex(idx)
number(tk_send('columnindex', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 405
def columnwidth(idx, opt=nil)
if opt
number(tk_send('columnwidth', _to_idx(idx), "-#{opt}"))
else
number(tk_send('columnwidth', _to_idx(idx)))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 422
def configcelllist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
ary = []
lst.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configcelllist', ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 432
def configcells(*args) # args ==> idx, opt, val, idx, opt, val, ...
ary = []
args.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configcells', *ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 442
def configcolumnlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
ary = []
lst.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configcolumnlist', ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 452
def configcolumns(*args) # args ==> idx, opt, val, idx, opt, val, ...
ary = []
args.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configcolumns', *ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 462
def configrowlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
ary = []
lst.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configrowlist', ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 472
def configrows(*args) # args ==> idx, opt, val, idx, opt, val, ...
ary = []
args.slice(3){|idx, opt, val|
ary << _to_idx(idx) << "-#{opt}" << val
}
tk_send('configrows', *ary)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 482
def containing(y)
idx = num_or_str(tk_send('containing', y))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 487
def containing_cell(x, y)
idx = _from_idx(tk_send('containingcell', x, y))
if idx.kind_of?(Array)
[
((idx[0].kind_of?(Fixnum) && idx[0] < 0)? nil: idx[0]),
((idx[1].kind_of?(Fixnum) && idx[1] < 0)? nil: idx[1])
]
else
idx
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 500
def containing_column(x)
idx = num_or_str(tk_send('containingcolumn', x))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 506
def curcellselection
simplelist(tk_send('curcellselection')).collect!{|idx| _from_idx(idx)}
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 510
def curselection
list(tk_send('curselection'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 527
def delete_columns(first, last=nil)
if first.kind_of?(Array)
tk_send('deletecolumns', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('deletecolumns', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 514
def delete_items(first, last=nil)
if first.kind_of?(Array)
tk_send('delete', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('delete', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 539
def edit_cell(idx)
tk_send('editcell', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 549
def editwinpath
window(tk_send('editwinpath'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 545
def editwintag
TkBindTag.new_by_name(tk_send('editwintag'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 553
def entrypath
window(tk_send('entrypath'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 557
def fill_column(idx, txt)
tk_send('fillcolumn', _to_idx(idx), txt)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 563
def finish_editing
tk_send('finishediting')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 569
def formatinfo
key, row, col = simplelist(tk_send('formatinfo'))
[key, number(row), number(col)]
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 574
def get(first, last=nil)
if first.kind_of?(Array)
simplelist(tk_send('get', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
simplelist(tk_send('get', first, last))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 293
def get_attrib(name=nil)
if name && name != None
tk_send('attrib', name)
else
ret = []
lst = simplelist(tk_send('attrib'))
until lst.empty?
ret << ( [lst.shift] << lst.shift )
end
ret
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 328
def get_cellattrib(name=nil)
if name && name != None
tk_send('cellattrib', name)
else
ret = []
lst = simplelist(tk_send('cellattrib'))
until lst.empty?
ret << ( [lst.shift] << lst.shift )
end
ret
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 584
def get_cells(first, last=nil)
if first.kind_of?(Array)
simplelist(tk_send('getcells', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
simplelist(tk_send('getcells', first, last))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 380
def get_columnattrib(name=nil)
if name && name != None
tk_send('columnattrib', name)
else
ret = []
lst = simplelist(tk_send('columnattrib'))
until lst.empty?
ret << ( [lst.shift] << lst.shift )
end
ret
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 595
def get_columns(first, last=nil)
if first.kind_of?(Array)
simplelist(tk_send('getcolumns', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
simplelist(tk_send('getcolumns', first, last))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 606
def get_keys(first, last=nil)
if first.kind_of?(Array)
simplelist(tk_send('getkeys', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
simplelist(tk_send('getkeys', first, last))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 727
def get_rowattrib(name=nil)
if name && name != None
tk_send('rowattrib', name)
else
ret = []
lst = simplelist(tk_send('rowattrib'))
until lst.empty?
ret << ( [lst.shift] << lst.shift )
end
ret
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 617
def has_attrib?(name)
bool(tk_send('hasattrib', name))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 621
def has_cellattrib?(idx, name)
bool(tk_send('hascellattrib', _to_idx(idx), name))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 625
def has_columnattrib?(idx, name)
bool(tk_send('hascolumnattrib', _to_idx(idx), name))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 629
def has_rowattrib?(idx, name)
bool(tk_send('hasrowattrib', _to_idx(idx), name))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 633
def imagelabelpath(idx)
window(tk_send('imagelabelpath', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 637
def index(idx)
number(tk_send('index', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 641
def insert(idx, *items)
tk_send('insert', _to_idx(idx), *items)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 646
def insert_columnlist(idx, columnlist)
tk_send('insertcolumnlist', _to_idx(idx), columnlist)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 652
def insert_columns(idx, *args)
tk_send('insertcolums', _to_idx(idx), *args)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 658
def insert_list(idx, list)
tk_send('insertlist', _to_idx(idx), list)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 664
def is_elem_snipped?(cellidx, tkvar)
bool(tk_send('iselemsnipped', _to_idx(cellidx), tkvar))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 669
def is_title_snipped?(colidx, tkvar)
bool(tk_send('istitlesnipped', _to_idx(colidx), tkvar))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 674
def itemlistvar
TkVarAccess.new(tk_send('itemlistvar'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 678
def labelpath(idx)
window(tk_send('labelpath', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 682
def labels
simplelist(tk_send('labels'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 686
def labeltag
TkBindTag.new_by_name(tk_send('labeltag'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 690
def move(src, target)
tk_send('move', _to_idx(src), _to_idx(target))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 695
def move_column(src, target)
tk_send('movecolumn', _to_idx(src), _to_idx(target))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 701
def nearest(y)
_from_idx(tk_send('nearest', y))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 705
def nearest_cell(x, y)
_from_idx(tk_send('nearestcell', x, y))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 710
def nearest_column(x)
_from_idx(tk_send('nearestcolumn', x))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 715
def reject_input
tk_send('rejectinput')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 412
def requested_columnwidth(idx)
columnwidth(idx, 'requested')
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 721
def reset_sortinfo
tk_send('resetsortinfo')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 749
def scan_dragto(x, y)
tk_send('scan', 'dragto', x, y)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 744
def scan_mark(x, y)
tk_send('scan', 'mark', x, y)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 754
def see(idx)
tk_send('see', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 759
def see_cell(idx)
tk_send('seecell', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 765
def see_column(idx)
tk_send('seecolumn', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 771
def selection_anchor(idx)
tk_send('selection', 'anchor', _to_idx(idx))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 776
def selection_clear(first, last=nil)
if first.kind_of?(Array)
tk_send('selection', 'clear', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('selection', 'clear', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 787
def selection_includes(idx)
bool(tk_send('selection', 'includes', _to_idx(idx)))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 791
def selection_set(first, last=nil)
if first.kind_of?(Array)
tk_send('selection', 'set', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('selection', 'set', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 802
def separatorpath(idx=nil)
if idx
window(tk_send('separatorpath', _to_idx(idx)))
else
window(tk_send('separatorpath'))
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 810
def separators
simplelist(tk_send('separators')).collect!{|w| window(w)}
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 305
def set_attrib(*args)
tk_send('attrib', *(args.flatten))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 340
def set_cellattrib(*args)
tk_send('cellattrib', *(args.flatten))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 392
def set_columnattrib(*args)
tk_send('columnattrib', *(args.flatten))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 739
def set_rowattrib(*args)
tk_send('rowattrib', *(args.flatten))
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 814
def size
number(tk_send('size'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 818
def sort(order=nil)
if order
order = order.to_s
order = '-' << order if order[0] != --
if order.length < 2
order = nil
end
end
if order
tk_send('sort', order)
else
tk_send('sort')
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 851
def sortByColumn_with_event_generate(idx)
tk_call('::tablelist::sortByColumn', @path, _to_idx(idx))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 859
def sort_by_column(idx, order=nil)
if order
order = order.to_s
order = '-' << order if order[0] != --
if order.length < 2
order = nil
end
end
if order
tk_send('sortbycolumn', _to_idx(idx), order)
else
tk_send('sortbycolumn', _to_idx(idx))
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 878
def sort_by_column_decreasing(idx)
tk_send('sortbycolumn', _to_idx(idx), '-decreasing')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 874
def sort_by_column_increasing(idx)
tk_send('sortbycolumn', _to_idx(idx), '-increasing')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 883
def sort_by_columnlist(idxlist, orderlist=None)
# orderlist :: list of 'increasing' or 'decreasing'
tk_send('sortbycolumnlist', idxlist.map{|idx| _to_idx(idx)}, orderlist)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 837
def sort_decreasing
tk_send('sort', '-decreasing')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 833
def sort_increasing
tk_send('sort', '-increasing')
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 889
def sortcolumn
idx = num_or_str(tk_send('sortcolum'))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 894
def sortcolumnlist
simplelist(tk_send('sortcolumlist')).map{|col| num_or_str(col)}
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 898
def sortorder
tk_send('sortorder')
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 902
def sortorderlist
simplelist(tk_send('sortorderlist'))
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 415
def stretched_columnwidth(idx)
columnwidth(idx, 'stretched')
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 906
def toggle_columnhide(first, last=nil)
if first.kind_of?(Array)
tk_send('togglecolumnhide', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('togglecolumnhide', first, last)
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 916
def toggle_rowhide(first, last=nil)
if first.kind_of?(Array)
tk_send('togglerowhide', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('togglerowhide', first, last)
end
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 926
def toggle_visibility(first, last=nil)
if first.kind_of?(Array)
tk_send('togglevisibility', first.collect{|idx| _to_idx(idx)})
else
first = _to_idx(first)
last = (last)? _to_idx(last): first
tk_send('togglevisibility', first, last)
end
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 418
def total_columnwidth(idx)
columnwidth(idx, 'total')
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 938
def unset_attrib(name)
tk_send('unsetattrib', name)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 943
def unset_cellattrib(idx, name)
tk_send('unsetcellattrib', _to_idx(idx), name)
self
end
# File tk/lib/tkextlib/tcllib/tablelist_core.rb, line 948
def unset_columnattrib(idx, name)
tk_send('unsetcolumnattrib', _to_idx(idx), name)
self
end
Commenting is here to help enhance the documentation. For example, sample code, 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.