On 11/19/2010 5:13 PM, 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?

Why not. We have demonstrated how our users can do that (through a plugin) in our product (written in C/C++):

http://www.hexblog.com/?p=229

2. What should I be learning?

PySide and the Python C API.

3. What are the steps to integration (in general terms).

- Your C++ should host Python. That is very simple.
- You should use the Python C api to export some functions from your C/C++ program to Python. This will allow Python to call C/C++
- Using The Python C API you can already call Python

4. Will the performance match the C++ (talking GUI here not just math
problems).


To be precise, I have not timed this, but the performance was more than fine.

Hope that helps.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to