color_of_part(keyword, newcolor)
click to toggle source
def color_of_part(keyword, newcolor)
tk_call(@chart, 'color', keyword, newcolor)
self
end
connect(from_task, to_task)
click to toggle source
def connect(from_task, to_task)
from_task = array2tk_list(from_task) if from_task.kind_of?(Array)
to_task = array2tk_list(to_task) if to_task.kind_of?(Array)
tk_call(@chart, 'connect', from_task, to_task)
self
end
font_of_part(keyword, newfont)
click to toggle source
def font_of_part(keyword, newfont)
tk_call(@chart, 'font', keyword, newfont)
self
end
milestone(txt, time, col=None)
click to toggle source
def milestone(txt, time, col=None)
tk_call(@chart, 'milestone', txt, time, col)
self
end
summary(txt, tasks)
click to toggle source
def summary(txt, tasks)
tasks = array2tk_list(tasks) if tasks.kind_of?(Array)
tk_call(@chart, 'summary', tasks)
self
end
task(txt, time_begin, time_end, completed=0.0)
click to toggle source
def task(txt, time_begin, time_end, completed=0.0)
list(tk_call(@chart, 'task', txt, time_begin, time_end,
completed)).collect!{|id|
TkcItem.id2obj(self, id)
}
end
vertline(txt, time)
click to toggle source
def vertline(txt, time)
tk_call(@chart, 'vertline', txt, time)
self
end