6.149. sibl_gui.ui.workers

workers.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines the Application workers classes.

Others:

6.149.1. Module Attributes

sibl_gui.ui.workers.LOGGER

6.149.2. Classes

class sibl_gui.ui.workers.GraphicsItem_worker(parent=None)[source]

Bases: PyQt4.QtCore.QThread

Defines a QThread subclass used to load images.

Initializes the class.

Parameters:parent (QObject) – Object parent.
imageLoaded

This signal is emited by the GraphicsItem_worker class when an image has been loaded. ( pyqtSignal )

Returns:Loaded image.
Return type:QImage
requests[source]

Property for self.__requests attribute.

Returns:self.__requests.
Return type:Queue
addRequest(request)[source]

Adds given request to the requests queue.

Parameters:request (tuple or list) – Request.
Returns:Method success.
Return type:bool
flushRequests()[source]

Flushes the requests queue.

Returns:Method success.
Return type:bool
run()[source]

Reimplements the QThread.run() method.

quit()[source]

Reimplements the QThread.quit() method.