コード例 #1
0
ファイル: chartwidget.py プロジェクト: sahwar/billreminder
    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)
コード例 #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)
コード例 #3
0
ファイル: chartwidget.py プロジェクト: sahwar/billreminder
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)
コード例 #4
0
ファイル: chartwidget.py プロジェクト: GNOME/billreminder
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)
コード例 #5
0
ファイル: chartwidget.py プロジェクト: GNOME/billreminder
   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)