def _make_widget(self):
"""
Sets the widget (here a QCheckbox)
:return:
"""
self.widget = pg.GraphicsWindow(title="Plot")
legend = getattr(self.module.__class__, self.attribute_name).legend
self.pw = self.widget.addPlot(title="%s vs. time (s)"%legend)
self.plot_start_time = self.time()
self.curves = {}
setattr(self.module.__class__, '_' + self.attribute_name + '_pw', self.pw)
评论列表
文章目录