def __init__(self): gtk.EventBox.__init__(self) self.chart = Chart(legend_width=self.x_offset, max_bar_width=35, interactive=False) self.add(self.chart)
def main(): args = parse_options() steps_object = locate(args.steps) sch = SimpleScheduler(recipe_id=args.recipe_id, steps=steps_object, enddate=args.enddate) schedule = sch.simple_schedule() print(sch.print_schedule()) starttime = sch.starttime chart = Chart() chart.local_gantt(sch.step_mgr.steps)
class ChartWidget(gtk.EventBox): x_offset = 90 # align all graphs to the left edge def __init__(self): gtk.EventBox.__init__(self) self.chart = Chart(legend_width=self.x_offset, max_bar_width=35, interactive=False) self.add(self.chart) def plot(self, keys, values): """ Populates chart with data passed in. """ self.chart.plot(keys, values)
class ChartWidget(gtk.EventBox): x_offset = 90 # align all graphs to the left edge def __init__(self): gtk.EventBox.__init__(self) self.chart = Chart( legend_width = self.x_offset, max_bar_width = 35, interactive = False ) self.add(self.chart) def plot(self, keys, values): """ Populates chart with data passed in. """ self.chart.plot(keys, values)
def __init__(self): gtk.EventBox.__init__(self) self.chart = Chart( legend_width = self.x_offset, max_bar_width = 35, interactive = False ) self.add(self.chart)