Need help on wxPython

Hi,

I am working on a project which needs to support scripting functionality.
Project development is going on using wxWindows as GUI framework. Project
consists on modules, for implementing some of the backend functionalities,
which are implemented as wxWindows DLLs.

We have decided to use wxPython for providing the scripting feature.
Following is what we need to achieve:

1. wxPython script should be able to call the functions from a DLL which is
written in C++ using wxWindows.

2. We should be able to call the python script through a menu option of our
wxWindows application.

3. We should be able to call one script from another.

Could you please help me in achieving these requirements?

Regards,
Gauri.

···

_________________________________________________________________
Looking for love? Yearning for friendship? http://www.msn.co.in/Romance/ You're in the right place

Gauri Deshpande wrote:

Hi,

I am working on a project which needs to support scripting functionality.
Project development is going on using wxWindows as GUI framework. Project
consists on modules, for implementing some of the backend functionalities,
which are implemented as wxWindows DLLs.

We have decided to use wxPython for providing the scripting feature.
Following is what we need to achieve:

1. wxPython script should be able to call the functions from a DLL which is
written in C++ using wxWindows.

You can create Python extension modules for your DLL the same way that wxPython does. There was some discussion last week (I think) about som of the issues and stumbling blocks that you may run into with this, please look in the list archives.

2. We should be able to call the python script through a menu option of our
wxWindows application.

You'll also want to look at the samples/embedding sample. It shows how to invoke wxPYthon code from within your wxWindows app.

3. We should be able to call one script from another.

No problem. As long as script A is able to import script B then it can invoke code in B just like any other Python code.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!