GTK libs don't get events when wrapped for Python

M

Mark Asbach

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,
python2.3

Thanks in advance,

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top