import pyqtgraph as pgimport timefrom pyqtgraph.Qt import QtCore, QtGuiimport numpy as npfrom pyardrone import ARDrone, atimport thread1
## Code for plot, copied form example.
--
## Threading and updating part
def update(): print("update") update_plot_vx() update_plot_vy() update_plot_vz()
class Thread(pg.QtCore.QThread): newData = pg.QtCore.Signal(object) def run(self): thread1
timer = pg.QtCore.QTimer()timer.timeout.connect(update)timer.start(50)
thread = Thread()
thread.newData.connect(update) #It might be something with row, but removing it doesn't change anything
thread.start()
# Start Qt event loop unless running in interactive mode or using pyside.if __name__ == '__main__': import sys if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'): QtGui.QApplication.instance().exec_()
--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/f9941f7c-0449-42e9-98c9-bea183da47d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.