On Wednesday 22 December 2010 12:41:46 Simon Leung wrote:
> Hi all,
> 
> I'm new to GUI programming and this is probably quite simple. I have a
> wizard based GUI. In validation() of a page, I'm doing quite a lot of
> communication (serial) stuff and updating a progress bar. But I can see
> that the GUI is not updated quickly enough, probably because it didn't
> get a chance. I'm wondering in such a situation, is there a way to make
> the GUI more responsive?
> 
> The validation() code is NOT running on a separate thread.

The better way is to use threads, but if the communication code is written in 
Python using threads may not be of much help due to Python VM limitations.

Anyway you can give a change to QApplication.processEvents method and see if 
it helps.
 
> Thanks,
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to