示例#1
0
class Gui(object):
    def __init__(self, datastore, profiles):
        self.datastore = datastore
        self.profiles = profiles
        gtk.gdk.threads_init()
        self.plotwidget = PlotWidget(self.datastore, self.profiles)
        self.plotwin = PlotWindow(self.plotwidget)
    
    def getMainPlotWidget(self):
        return self.plotwin.plot
    
    def run(self):
        self.plotwin.show_all()
    
        try:
            gtk.main()
        except KeyboardInterrupt:
            pass
示例#2
0
 def __init__(self, datastore, profiles):
     self.datastore = datastore
     self.profiles = profiles
     gtk.gdk.threads_init()
     self.plotwidget = PlotWidget(self.datastore, self.profiles)
     self.plotwin = PlotWindow(self.plotwidget)