[PyKDE] Multithreading in PyQT

Richard Jones rjones at ekit-inc.com
Thu May 9 01:26:01 BST 2002


On Wed, 8 May 2002 23:13, Jonas Zaveckas wrote:
> Hello
> I'm new with PyQT and QT also.
> I've problem with multithreaded application. My application gathers data
> from TPC/IP socket and passed it to GUI. Data is aquired on separate
> thread (used python module thread). From that thread event is emited to
> GUI windows (derived fom QWidget). After received big amount of data
> packets GUI becomes freezed. I've tried  to use
> QApplication.lock()/unlock() - does not help.
> How can arrange data transfering to GUI part?

If you're just receiving network data, consider setting up a Qt listener - 
much simpler to set up than a thread implementation.

For an example, I've attached a log viewer for the new python logging module. 


   Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logview.py
Type: text/x-python
Size: 3989 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20020509/24444daa/logview.py


More information about the PyQt mailing list