Alif Wahid wrote:

Hi folks,

Is there a way to programmatically detect if an arbitrary version of PyGtk
was compiled with the '--enable-threading' flag to have thread support
enabled. A bit like the pygtk.require('2.0') method that checks for the
right version. So I'm looking for a method that does the same for checking
if thread support is enabled or not.


Call gtk.threads_init(). If you get an exception, then it isn't supported (you need to call gtk.threads_init() to enable threading support in a threaded build anyway).

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to