Hi John,
On 19.11.2010 18:13, ext John Fabiani wrote:
Hi,
Here's my story. I am a python programmer and I'm trying to leverage my
experience with python. All of my GUI experience has been with wxPython.
Therefore, I know little to nothing about QT. And not a lot about C++.
I want to be able to create my forms/dialogs/frames (or whatever you folks
call them) using PySide and somehow integrate into an existing program written
in C++ QT (the program in question is a xTuple and source is available).
It's my understanding that it is possible. So my questions are:
1. Is it a good idea?
Depends on the perspective, I guess. Embedding Python & PySide into an
existing C++ application would be potentially very useful, but I don't
think it has been really tried out yet and in any case it would be far
from trivial to do.
In practice, if you're speaking about a fairly limited set of new
features, it might be easier for you to learn just enough C++ to
implement the features natively.
2. What should I be learning?
You might want to check the SuperHybrids tutorial [1] whether that
approach (wrapping the whole native program into Python) would be
feasible for you.
If that doesn't work, you'd need to study the Python embedding API and
glue that together with PySide. How that might work, I have
unfortunately no idea.
3. What are the steps to integration (in general terms).
4. Will the performance match the C++ (talking GUI here not just math
problems).
There shouldn't be any perceivable performance difference between the
C++ and Python parts of GUI code.
[1] http://lynxline.com/superhybrids-part-2-now-qt-pyside/
Cheers,
ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside