Skip to content

Instantly share code, notes, and snippets.

View davmaz's full-sized avatar

davmaz davmaz

  • N/A
  • Baltimore, MD
View GitHub Profile
@mhogg
mhogg / plotting_QThread.py
Last active March 8, 2023 09:37
How to use QThreads in pyqt
# Code to show two plots of simulated streamed data. Data for each plot is processed (generated)
# by separate threads, and passed back to the gui thread for plotting.
# This is an example of using movetothread, which is the correct way of using QThreads
# Michael Hogg, 2015
import time, sys
from pyqtgraph.Qt import QtGui, QtCore
from PyQt4.Qt import QMutex
import pyqtgraph as pg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.