Re: Wrapping dia interfaces to enable in Python
- From: "John (J5) Palmieri" <johnp martianrock com>
- To: dia-list gnome org
- Subject: Re: Wrapping dia interfaces to enable in Python
- Date: Fri, 06 Feb 2004 13:43:52 -0500
You can also use PyGTK's utilities for wrapping GObjects with Python.
It is very easy to do.
--
J5
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 (http://swig.org) 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
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]