Python + WinMFC message loop

Robert Kiendl rkiendl at gmx.net
Mon Mar 13 12:20:20 EST 2000


i want to embed python into a win-app with MFC-gui.

a python-commandline should stay parallel with the running app but is
not allowed to use an extra thread cause of consistency problems.

i want to have normal interactive behaviour on the commandline, with
history editing, 2 prompts and so on.

the problem is, that there is no non-blocking function for interactive
input in the python api. PyRun_InteractiveOne would block my message
pump until the end of a complete statement (def , class , ...)

does anybody have a hint how to quickly get interactive interpreting
into a single-threaded running app? 
or do i have to write an own python aware line-editor? does such thing
exist already?

-robert



More information about the Python-list mailing list