Re: Wrapping dia interfaces to enable in Python

You can also use PyGTK's utilities for wrapping GObjects with Python. 
It is very easy to do.


On Fri, 2004-02-06 at 12:57, Carol Farlow Lerche wrote:
This is probably an inappropriate suggestion to people who know way more 
than I do about Dia.  But I have used SWIG ( very 
successfully to provide a complex C library as a Perl-accessible 
interface in the past, and it also supports Python.  It didn't take very 
long to figure out how to use it.  You basically feed it the .h files 
along with additional guidance as needed, and it emits a shim layer for 
mating the (Perl/Tkl/Python/Guile/Java/Ruby/Mzscheme/ 
PHP/caml/C#/chicken scheme/javascript/eiffel) scripting language to the 
underlying C or C++ library.

Of course you have issues with mating the data types, but these can be 
worked out pretty easily.

Carol Lerche

Dia-list mailing list
Dia-list gnome org
FAQ at
Main page at

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]