From pykde Wed Apr 06 13:58:40 2005 From: "Giovanni Bajo" Date: Wed, 06 Apr 2005 13:58:40 +0000 To: pykde Subject: Re: [PyKDE] Unresponsive GUI Message-Id: <046801c53ab0$bcff24e0$bf03030a () trilan> X-MARC-Message: https://marc.info/?l=pykde&m=111279620110722 Flávio Codeço Coelho 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