473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Thanks in advance,

Mark
--
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 1156

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Ströder | last post by:
HI! Is it possible to probe for installed libs with DistUtils? I'd like to automatically search for optional libs and adjust C compiler switchers before starting the build of a the extension...
35
by: Gabriel Zachmann | last post by:
Is there any generic way to use C++ libraries from within Python. I seem to recall that there are tools to generate wrappers for C-libraries semi-automatically. But those were still way too...
12
by: alf | last post by:
Hi, for some reason I have to deal with custom python distributions. It turned out it is quite simple - I just install the python from python.org and all the libs needed. Then I take...
3
by: Daniel | last post by:
Hi, I have a scenario where a class is wrapped inside another but the inner class triggers an event. I want that event to be accessed outside of the wrapper. As a result i do code such as: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.