MFC app to Python IDLE communication

K

konstantin.smolin

Hi all
In my MFC application I need to call Python IDLE, pass some terms (or
scripts or values - they are simple strings or memo fields) there so
that user may modify/evaluate/interpret it and then return the
modified terms back to the application.

How can I do it the best way (MFC->IDLE)?

As for IDLE->MFC, I'm afraid that copy-paste is the way out... Is it
so?

Thanks in advance for the hints.
 
D

Dennis Lee Bieber

Hi all
In my MFC application I need to call Python IDLE, pass some terms (or

IDLE is a Tkinter/TK IDE for Python... Why would you invoke a whole
IDE to manipulate application data?

If you already have MFC in the mix, wouldn't it be better to use
the win32 python extensions and keep everything in MFC?
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 
K

konstantin.smolin

        IDLE is a Tkinter/TK IDE for Python... Why would you invoke a whole
IDE to manipulate application data?

It was just an idea. I have never dealt with python before...
I need some hints to understand where the answer to my problem is.
         If you already have MFC in the mix, wouldn't it be better to use
the win32 python extensions and keep everything in MFC?

as I understand you suggest to extend win32 python to my needs?
 
D

Dennis Lee Bieber

It was just an idea. I have never dealt with python before...
I need some hints to understand where the answer to my problem is.

Well... on my side, I'm not really sure /what/ you intend to do...
It sounded a lot like you were going to run one Python program from
inside IDLE (which is a Python program itself), somehow transfer data
from a compiled MFC-based application to that Python program, and -- the
confusion is here -- somehow use IDLE (debug mode?) to examine the data
as it exists in the Python program, maybe change it and somehow send it
back to the compiled program.
as I understand you suggest to extend win32 python to my needs?

I refer to the win32 modules that come with the ActiveState Python;
they are available separately but since I've always downloaded the
ActiveState installer, I don't recall what the package itself is fully
called (looks like PyWin32 in the help file). The win32 modules are
wrappers for most of the Windows native API calls... My thought was
that, if you are using MFC for interface, you might want to keep to
native Windows functions for the Python stuff..
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,798
Messages
2,569,651
Members
45,384
Latest member
GOLDY

Latest Threads

Top