Hi All,
Is there any way to determine the thread that is running the main
event loop? The documentation suggests QApplication.instance().thread()
but it looks like QObject.thread() is missing in PySide.
I don't need an actual reference to the thread, it would suffice to
check whether or not I'm running in the main thread (and thus whether I
can do various operations directly vs posting events).
I'm a wxPython refugee, where we'd use wx.Thread_IsMain() for this
purpose. Is there a similar function in PySide?
Thanks,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
[email protected] | http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
