[PyKDE] Embeding : C++ Object Visible from Python
phil at river-bank.demon.co.uk
Fri Sep 29 10:49:37 BST 2000
> Heath wrote:
> Dear All,
> I have developed a C++ application using Trolltech's Qt GUI API. I
> embedded Python within this application using SIP. I would like to
> create a
> MainWindow widget plus various other widgets on the C++ side and then
> pass their handles over to the Python side. On the Python side create
> additional child widgets and manipulate the existing C++ side widgets
> using PyQt bindings.
> Currently I can launch my app, execute PyQt scripts in my embedded
> command window and all works fine, dialog boxes popup etc... But I
> been unable to bridge this connectivity gap between the two sides.
> I have scoured the web and read sections in several books but I am
> unable to figure it out. Does anyone have any examples explaining a
> solution to this problem, or any relevant experience.
VeePee does this (http://www.thekompany.com/projects/vp). Start by
looking at the code of kvpshell (don't worry about the fact that it's
KDE). Note that I haven't got round to porting it to Python 1.6 yet -
you'll need 1.5.2.
Any questions, just ask.
More information about the PyQt