Example #1
0
    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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
   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)