[PyKDE] Keeping the GUI from freezing
Tony Cappellini
cappy2112 at gmail.com
Mon Feb 19 20:12:38 GMT 2007
Message: 2
Date: Mon, 19 Feb 2007 17:27:23 +0100
From: Andreas Pakulat <apaku at gmx.de>
Subject: Re: [PyKDE] Keeping the GUI from freezing
To: pykde at mats.imk.fraunhofer.de
Message-ID: <20070219162723.GC20122 at morpheus.apaku.dnsalias.org>
Content-Type: text/plain; charset=us-ascii
>>The "safest" way to do heavy work, without blocking the Ui is a separate
>>thread. And unless you have to access main-thread-data from the
>>worker-thread (or vice versa) this is a relative no-brainer using only
>>events that are sent to the main thread.
The script my gui is calling has a fairly intensive while loop which runs
for approx 20 seconds, depending on how many files it is processing.
With this in mind, will I still be able to refresh the GUI and keep it
from hanging
if I use your suggestion about threads?
More information about the PyQt
mailing list