Tag: QT4

  • Generic Worker Thread – PyQT

    Below is a generic threading worker in PyQT: {{{ lang=python lines=1 from PyQt4 import QtGui, QtCore import logging class worker_thread(QtCore.QThread): ## Generic worker thread finished = QtCore.pyqtSignal(dict) #< Replace this for data type that will be returned def __init__(self, ret_function, function, *args, **kwargs): ## Init # @param Function ret_function Function to run on end #…