Skip to content

Instantly share code, notes, and snippets.

View devs001's full-sized avatar

Devender Singh devs001

  • works in chat360
  • india
View GitHub Profile
@dalejfer
dalejfer / pyside2_qrunnable_signal_test.py
Created March 11, 2019 03:12
Run a QTheadPool with signal emitting QRunnable workers. Capture the signals in the main thread and update the UI.
#!python3.7
import random
import time
import PySide2
from PySide2 import QtCore, QtWidgets
from PySide2.QtCore import Slot, Signal, QObject, QThreadPool, QRunnable
class MyEmitter(QObject):