Module ImportFrom alias Import alias Assign NameStore ListLoad ClassDef bases NameLoad body Global identifier Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Return AttributeLoad NameLoad attr orelse If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str IfExp CompareEq Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Raise Call NameLoad BinOpMod Str AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Return If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Global identifier Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body For NameStore SubscriptLoad NameLoad Slice body Expr Call AttributeLoad NameLoad attr decorator_list
N/A PyQt4.QtCore * N/A collections N/A threads N/A Thread N/A QThread N/A N/A threads N/A ACTION_SETATTR 0 N/A ACTION_CALL 1 N/A ACTION_GETLIST 2 N/A ACTION_GETDICT 3 __init__ N/A N/A self func N/A N/A N/A N/A N/A QThread __init__ self N/A N/A self thr_func func N/A N/A self thr_stopFlag False N/A N/A N/A self connect self N/A SIGNAL fromMainThread(PyQt_PyObject, PyQt_PyObject) N/A self _fromMainThread N/A Qt QueuedConnection N/A N/A N/A self connect self N/A SIGNAL fromMainThreadBlocking(PyQt_PyObject, PyQt_PyObject) N/A self _fromMainThread N/A Qt BlockingQueuedConnection N/A N/A N/A self connect self N/A SIGNAL finished() N/A self _removeThread N/A run N/A N/A self N/A N/A N/A N/A N/A self thr_func self N/A self thr_args N/A __call__ N/A N/A self instance N/A args kwargs N/A N/A N/A self thr_instance instance N/A N/A self thr_args args N/A N/A N/A kwargs get thr_start N/A N/A N/A N/A self start N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A name startswith thr_ N/A N/A N/A N/A self __dict__ N/A name N/A attr N/A N/A N/A self thr_instance __getattribute__ name N/A N/A callable attr N/A N/A N/A self thr_lastCallFunc N/A N/A N/A N/A self thr_instance __class__ __dict__ N/A name N/A N/A self _callFunc N/A N/A N/A N/A type attr N/A list dict N/A N/A N/A N/A self emit N/A SIGNAL fromMainThreadBlocking(PyQt_PyObject, PyQt_PyObject) N/A N/A N/A type attr list N/A self ACTION_GETLIST N/A self ACTION_GETDICT name N/A N/A self thr_result N/A N/A N/A isinstance attr N/A collections Hashable N/A N/A attr N/A N/A N/A TypeError N/A unhashable type: %s N/A N/A type attr __name__ N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A N/A name startswith thr_ N/A N/A N/A N/A self __dict__ N/A name value N/A N/A N/A N/A N/A self thr_instance __setattr__ name value N/A N/A N/A self emit N/A SIGNAL fromMainThreadBlocking(PyQt_PyObject, PyQt_PyObject) N/A self ACTION_SETATTR N/A name value N/A _callFunc N/A N/A self N/A args kwargs N/A N/A method N/A N/A kwargs get thr_method N/A N/A method N/A N/A N/A N/A self thr_lastCallFunc self args N/A N/A method q N/A N/A N/A N/A self emit N/A SIGNAL fromMainThread(PyQt_PyObject, PyQt_PyObject) N/A self ACTION_CALL N/A N/A self thr_lastCallFunc args N/A N/A N/A method b N/A N/A N/A N/A self emit N/A SIGNAL fromMainThreadBlocking(PyQt_PyObject, PyQt_PyObject) N/A self ACTION_CALL N/A N/A self thr_lastCallFunc args N/A N/A self thr_result N/A _fromMainThread N/A N/A self action value N/A N/A N/A N/A action N/A self ACTION_SETATTR N/A N/A N/A N/A N/A self thr_instance __setattr__ value N/A N/A N/A action N/A self ACTION_CALL N/A N/A N/A func arg value N/A N/A self thr_result N/A func N/A self thr_instance arg N/A N/A N/A action N/A self ACTION_GETLIST N/A N/A N/A self thr_result N/A N/A N/A N/A self thr_instance __getattribute__ value N/A N/A N/A N/A action N/A self ACTION_GETDICT N/A N/A N/A self thr_result N/A N/A N/A N/A N/A self thr_instance __getattribute__ value copy N/A thr_stop N/A N/A self N/A N/A N/A N/A N/A self disconnect self N/A SIGNAL fromMainThread(PyQt_PyObject, PyQt_PyObject) N/A self _fromMainThread N/A N/A N/A self disconnect self N/A SIGNAL fromMainThreadBlocking(PyQt_PyObject, PyQt_PyObject) N/A self _fromMainThread N/A N/A self thr_stopFlag True N/A _removeThread N/A N/A self N/A N/A N/A N/A N/A threads remove self N/A N/A SimpleThread N/A N/A func N/A N/A N/A Simple thread decorator

Exmaple:
class Foo(QLabel):
    def __init__(self, parent = None):
        QLabel.__init__(self, parent)
        self.setFixedSize(320, 240)
        self.digits = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']

    @SimpleThread
    def bar(self, primaryText):
        rows = []
        digits = self.digits
        for item in digits:
            rows.append('%s: %s' % (primaryText, item))
            self.setText('
'.join(rows), thr_method = 'b')
            sleep(0.5)
            
    def setText(self, text):
        QLabel.setText(self, text)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    foo = Foo()
    foo.show()
    foo.bar('From thread', thr_start = True)
    app.exec_() wrapper N/A N/A N/A args kwargs N/A N/A threads N/A thread N/A Thread func N/A N/A thread args kwargs N/A N/A N/A threads append thread N/A thread N/A N/A wrapper N/A closeThreads N/A N/A N/A N/A N/A Close all threads N/A thread threads N/A N/A N/A N/A thread thr_stop N/A thread threads N/A N/A N/A N/A thread wait N/A terminateThreads N/A N/A N/A N/A N/A thread N/A threads N/A N/A N/A N/A N/A thread terminate N/A