[C++-sig] Re: should (how) I use Python to run my c++ classes

David Abrahams dave at boost-consulting.com
Fri Apr 9 01:02:36 CEST 2004


bert at isiosf.isi.it writes:

> Hi all,
>
> I'm not a Python user, but I've read something and it seems very
> interesting. I'm expecially interested in it's interplatform nature also
> reguarding GUI (though Tkinter.)
>
> I've already written a lot of classes for medical image processing, and
> now I'm using qt as GUI to put all together. But,  first of all, qt
> isn't free under windows, plus I'm encountering several troubles in
> putting together some libraries.
> So I though to Python as a possible language by which to write the GUI
> (Tkinter) and call my c++ classes. I've read quickly several parts of
> "learning Python" (oreilly) and I got my idea is feasible and even
> suggested in the introduction.
> But I don't know at all how to realize it...
> Of corse I now I'll have to read a lot, but it would be nice to have a
> simple example of a minimal python program calling a c++ class, maybe 
> after clicking on a tk button. In this way I would understand if at
> least it can be useful for me before to start a timekeeping study.

I suggest, especially if you already have Qt interfaces, that you go
with http://tnfox.sourceforge.net/TnFOX/html/, which also has a
Python interface.

I know it's not the simple intro you wanted; maybe someone else can
contribute that?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list