[PyKDE] Window refresh from another process

Phil Thompson phil at riverbankcomputing.co.uk
Thu Jul 3 15:15:01 BST 2003


On Thursday 03 July 2003 11:13 am, Albert Cervera Areny wrote:
> Hi!
>   I'm trying to do something like the semaphore.py example, but I can't
> use QThread (can't import QThread from qt, how should I do this?). I
> don't know if this is the problem but I'm using Thread and after the
> QApplication.postEvent() (semaphore.py uses QThread.postEvent() ) I've
> tried calling app.processEvents() (app is a global name for my
> QApplication). However, the customEvent() isn't called.
>
> Do you know how I could solve this?

If you are not using Qt threads then all PyQt calls must be done from the same 
thread.

If you can't import QThread then you probably have Qt built with thread 
support disabled.

Phil




More information about the PyQt mailing list