add(keys={})
click to toggle source
def add(keys={})
window(tk_call(@path, 'add', *hash_kv(keys)))
end
child_site(idx)
click to toggle source
def child_site(idx)
window(tk_call(@path, 'childsite', index(idx)))
end
child_site_list()
click to toggle source
def child_site_list
list(tk_call(@path, 'childsite'))
end
delete(idx1, idx2=nil)
click to toggle source
def delete(idx1, idx2=nil)
if idx2
tk_call(@path, 'delete', index(idx1), index(idx2))
else
tk_call(@path, 'delete', index(idx1))
end
self
end
index(idx)
click to toggle source
def index(idx)
@tabset.index(tagid(idx))
end
insert(idx, keys={})
click to toggle source
def insert(idx, keys={})
window(tk_call(@path, 'insert', index(idx), *hash_kv(keys)))
end
next()
click to toggle source
def next
tk_call(@path, 'next')
self
end
prev()
click to toggle source
def prev
tk_call(@path, 'prev')
self
end
select(idx)
click to toggle source
def select(idx)
tk_call(@path, 'select', index(idx))
self
end
show_tab(idx)
click to toggle source
def show_tab(idx)
@tabset.show_tab(idx)
self
end
tagid(tagOrId)
click to toggle source
def tagid(tagOrId)
if tagOrId.kind_of?(Tk::Itk::Component)
tagOrId.name
else
tagOrId
end
end
view(*index)
click to toggle source
def view(*index)
if index.size == 0
idx = num_or_str(tk_send_without_enc('view'))
if idx.kind_of?(Fixnum) && idx < 0
nil
else
idx
end
else
tk_send_without_enc('view', *index)
self
end
end
view_moveto(*index)
click to toggle source
def view_moveto(*index)
view('moveto', *index)
end
xview(*index)
click to toggle source
xview_moveto(*index)
click to toggle source
yview(*index)
click to toggle source
yview_moveto(*index)
click to toggle source