lib.thread module

Library for work with thread in pychemqt for improve UI response
  • WaitforClick: Thread for draw stream in PFD

  • Evaluate: Thread to insolate entity calculation from gui, used in streams equipment, and project

API reference

class lib.thread.WaitforClick(num, parent=None)[source]

Bases: QThread

Thread used in PFD drawing to specified stream input and output or add equipment. TODO: Use to customize stream drawing

Methods

run()

Wait until the mouse is clicked

__init__(num, parent=None)[source]
run()[source]

Wait until the mouse is clicked

class lib.thread.Evaluate(parent=None)[source]

Bases: QThread

Thread used to insolate calculation process in entities (stream, project and equipment, so gui can response while calculation is in process

Methods

run()

Evaluate entity

start(entity, kwargs)

Rewrite QThread start procedure

__init__(parent=None)[source]
start(entity, kwargs)[source]

Rewrite QThread start procedure

run()[source]

Evaluate entity