def run(self):
self.app = QtGui.QApplication([])
win = pg.GraphicsWindow(title="Basic plotting examples")
win.resize(1000,600)
win.setWindowTitle('pyqtgraph example: Plotting')
plot = win.addPlot(title=self.name)
self.curve = plot.plot(pen='y')
timer = QtCore.QTimer()
timer.timeout.connect(self._update)
timer.start(50)
self.app.exec_()
try:
self.in_process_pipe.send("closing")
except:
pass
# Process was done, no need to process exception
评论列表
文章目录