[PyQt] Unexpected behaviour

Yao Ko koyao at raptr.com
Tue Aug 17 07:13:19 BST 2010


On Mon, Aug 16, 2010 at 11:03 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 17.08.10 13:07:00, Peter Milliken wrote:
>> Sorry if the answer to this is obvious, but it is entirely unexpected
>> behaviour IMO :-)
>>
>> I have created a simple GUI with some elements, such as a progressbar and
>> radiobuttons, which are 'dynamically' updated when an underlying Python task
>> (created using threading.Thread) communicates information back to the GUI
...

Another tidbit is that mixing Python threading.Thread() with Qt's own
thread needs special care.  The threading.Thread() thread should never
do any GUI updating, or it will lead to some weird crashing issues.

Yao


More information about the PyQt mailing list