module Tk::TkTable::ConfigMethod
Public Instance Methods
current_tag_configinfo(tagOrId, slot=nil)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 92 def current_tag_configinfo(tagOrId, slot=nil) current_itemconfiginfo(['tag', tagid(tagOrId)], slot) end
current_window_configinfo(tagOrId, slot=nil)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 119 def current_window_configinfo(tagOrId, slot=nil) current_itemconfiginfo(['window', tagid(tagOrId)], slot) end
tag_cget(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 80 def tag_cget(tagOrId, option) itemcget(['tag', tagid(tagOrId)], option) end
tag_cget_strict(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 83 def tag_cget_strict(tagOrId, option) itemcget_strict(['tag', tagid(tagOrId)], option) end
tag_cget_tkstring(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 77 def tag_cget_tkstring(tagOrId, option) itemcget_tkstring(['tag', tagid(tagOrId)], option) end
tag_configinfo(tagOrId, slot=nil)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 89 def tag_configinfo(tagOrId, slot=nil) itemconfiginfo(['tag', tagid(tagOrId)], slot) end
tag_configure(tagOrId, slot, value=None)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 86 def tag_configure(tagOrId, slot, value=None) itemconfigure(['tag', tagid(tagOrId)], slot, value) end
window_cget(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 99 def window_cget(tagOrId, option) itemcget(['window', tagid(tagOrId)], option) end
window_cget_strict(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 102 def window_cget_strict(tagOrId, option) itemcget_strict(['window', tagid(tagOrId)], option) end
window_cget_tkstring(tagOrId, option)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 96 def window_cget_tkstring(tagOrId, option) itemcget_tkstring(['window', tagid(tagOrId)], option) end
window_configinfo(tagOrId, slot=nil)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 116 def window_configinfo(tagOrId, slot=nil) itemconfiginfo(['window', tagid(tagOrId)], slot) end
window_configure(tagOrId, slot, value=None)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 105 def window_configure(tagOrId, slot, value=None) if slot == :window || slot == 'window' value = _epath(value) elsif slot.kind_of?(Hash) if slot.key?(:window) || slot.key?('window') slot = _symbolkey2str(slot) slot['window'] = _epath(slot['window']) end end itemconfigure(['window', tagid(tagOrId)], slot, value) end
Private Instance Methods
__item_boolval_optkeys(id)
click to toggle source
Calls superclass method
# File lib/tkextlib/tktable/tktable.rb, line 62 def __item_boolval_optkeys(id) super(id) << 'multiline' << 'showtext' << 'wrap' end
__item_cget_cmd(id)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 44 def __item_cget_cmd(id) # id := [ type, tagOrId ] [self.path, id[0], 'cget', id[1]] end
__item_config_cmd(id)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 49 def __item_config_cmd(id) # id := [ type, tagOrId ] [self.path, id[0], 'configure', id[1]] end
__item_pathname(id)
click to toggle source
# File lib/tkextlib/tktable/tktable.rb, line 54 def __item_pathname(id) if id.kind_of?(Array) id = tagid(id[1]) end [self.path, id].join(';') end
__item_strval_optkeys(id)
click to toggle source
Calls superclass method
# File lib/tkextlib/tktable/tktable.rb, line 67 def __item_strval_optkeys(id) super(id) << 'ellipsis' end
__item_val2ruby_optkeys(id)
click to toggle source
Calls superclass method
# File lib/tkextlib/tktable/tktable.rb, line 72 def __item_val2ruby_optkeys(id) # { key=>method, ... } super(id).update('window'=>proc{|k,v| window(v)}) end