Thanks for the help earlier on callbacks from canvas items.  Now I
have another related problem.  Within my callback, python exception
notices are being repressed.  The exceptions are occuring, but python
isn't telling me about them, which makes tracking down bugs extremely
painful.

As you might recall, I'm getting mouse events in C++ for canvas items
from a gtk-canvas object.  The C++ callback calls a Python function,
sandwiching a call to PyEval_CallObject between calls to
PyGtk_BlockThreads and PyGtk_UnblockThreads.  I presume that the
thread blocking has something to do with the disappearance of the
exception messages, but I can't find anything in the documentation
that gives me a hint about how to fix it.  Any ideas would be welcome.

I also don't quite understand what blocking threads has to do with the
callbacks.  I don't explicitly create any threads in my program.  Is
gtk using threads anyway?

 Thanks again,

         Steve



-- 
/* EMail: [EMAIL PROTECTED] ------------------ Phone: (301) 975-5423 --
-- WWW:  http://math.nist.gov/~SLanger/ ------------ Fax:   (301) 990-4127 --
-- Mail: NIST; 100 Bureau Drive -- Stop 8910; Gaithersburg, MD  20899-8910 */
_______________________________________________
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