def initUI(self): reactor = self.reactor self.graphDict = {} self.tabDict = {} for gc in GUIConfig.tabs: gcli = gc.config_list gli = [] for config in gcli: name = config.name max_ds = config.max_datasets if config.isScrolling: g = ScrollingGraph(config, reactor, self.cxn) elif config.isImages: g = ImageGraph(config, reactor) self.graphDict[name] = g gli.append(g) continue elif config.isHist: g = Hist(config, reactor, self.cxn) self.graphDict[name] = g gli.append(g) continue else: g = Graph(config, reactor, self.cxn) g.set_ylimits(config.ylim) self.graphDict[name] = g gli.append(g) widget = GridGraphWindow(gli, gc.row_list, gc.column_list, reactor) self.tabDict[name] = widget self.addTab(widget, gc.tab) self.setMovable(True)
def initUI(self): reactor = self.reactor self.graphDict = {} for gc in GUIConfig.tabs: gcli = gc.config_list gli = [] for config in gcli: name = config.name max_ds = config.max_datasets if config.isScrolling: g = ScrollingGraph(config, reactor) else: g = Graph(config, reactor) g.set_ylimits(config.ylim) self.graphDict[name] = g gli.append(g) self.addTab( GridGraphWindow(gli, gc.row_list, gc.column_list, reactor), gc.tab)
def insert_tab(self, t): g = Graph(t, reactor) self.graphDict[t] = g self.addTab(g, t)