VeePee: [PyKDE] Embedding Python in C++ Qt App

Andrew Smart Andrew.Smart at smart-knowhow.de
Mon Jun 30 10:42:01 BST 2003


Hi Phil,

thanks for the info. After looking at the homepage
I think that VeePee has a different goal and is much
to complicated for my use.

I'll see what I can reach "by foot" :-)

Regards,
Andrew


A. Smart Team Consulting GmbH
Kaiserstr. 1c - 53113 Bonn
www.a-smart-gmbh.de


> -----Ursprüngliche Nachricht-----
> Von: Phil Thompson [mailto:phil at riverbankcomputing.co.uk]
> Gesendet: Sonntag, 29. Juni 2003 11:23
> An: Andrew Smart; pykde mailing list
> Betreff: Re: [PyKDE] Embedding Python in C++ Qt App
>
>
> On Tuesday 24 June 2003 11:52 am, Andrew Smart wrote:
> > Hi folks,
> >
> > I have a Qt C++ applikation, which I would like to extend with
> > Python. Means: I would like to embed the Python interpreter into
> > the C++ application, and interact in Python script with the Qt
> > application.
> >
> > The easy embedding part is already done: I can start Python
> > scripts from within the Qt application.
> >
> > Now I would like to give the Python scripts some handles
> > (like QApplication, QWindow) as parameters, so that the
> > Python script is able to do something with it.
> >
> > And here I'm wondering how, since PyQt is itself a wrapper
> > around Qt. If anyone could give me an hint where to start
> > I would very grateful :-))
> >
> > I speculate that I have to create a PyQt-QApplication object
> > in the module name space of the script, and put a pointer
> > of the real Qt-QApplication object into it... wondering...
>
> You could have a look at VeePee (search Freshmeat) which I did a
> few years
> back to do this sort of thing. It's structure is a little
> complicated as it
> was designed to support both GNOME and KDE applications.
>
> Phil
>





More information about the PyQt mailing list