[PyQt] GUI thread check

Frédéric frederic.mantegazza at gbiloba.org
Fri Jan 16 22:58:03 GMT 2009


On vendredi 16 janvier 2009, Zac Burns wrote:

> Can I check to see if the current thread is the safe 'main' GUI thread?

Yes, using

    threading.currentThread().getName()

The main thread is called 'MainThread'.

-- 
    Frédéric

    http://www.gbiloba.org



More information about the PyQt mailing list