469,290 Members | 1,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

GTK libs don't get events when wrapped for Python

Hi list,

I've got a crazy problem: an application fully written C and using a
third-party library that itself uses GTK to draw some GUI widgets works
as expected. But if I wrap the lib with SWIG and use it in Python,
everythings works but the GUI parts.

In fact, it looks like the library doesn't get events / messages from
the window manager or these events have a significant delay.

For example, I want to open a window and draw an image into it. This
means two library calls. The first one should draw the window (but it
only does when calling it from a C-only binary), the second one should
resize the window and draw the image, but when called from python just
draws the window. Occasionally, resize and in rare circumstances drawing
of the image occur on subsequent calls of the library.

Really strange and I don't have a clue where to look for a remedy. Is
there anybody who could help me, please?

FYI: the library used is Intel's OpenCV / HighGui, OS is debian/Sarge,

Thanks in advance,

Dipl.-Ing. Mark Asbach Tel +49 (0)241 80-27677
Institute of Communications Engineering
RWTH Aachen University, Germany http://www.ient.rwth-aachen.de
Jul 18 '05 #1
0 994

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.