[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Unresponsive GUI
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-04-06 13:58:40
Message-ID: 046801c53ab0$bcff24e0$bf03030a () trilan
[Download RAW message or body]

Flávio Codeço Coelho <fccoelho@fiocruz.br> wrote:

> I am somewhat new to pyQT, and on my app, which is pretty cpu intensive,
the
> GUI becomes unresponsive while the python code is running.
>
> Is there a way around this? I thought the GUI would run as a C++ (QT)
thread
> independently of my python processes, but apparently this is not the case.
Or
> am I doing something wrong?
>
> appreciate any hints,


This is a generic Qt question, rather than a PyQt specific. If you perform
long taks in your application, you need to either do them in a different
thread, or poll Qt's event loop (in Python, you can do
qApp.processEvents()). If you can poll very often within your long task, the
GUI will be still responsive. Anyway, this is better answered on the
qt-interest mailing list.
-- 
Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic