[Pythonmac-SIG] Python embedding in LabVIEW on Mac? (oops, found part of the problem)
Jack Jansen
Jack.Jansen@cwi.nl
Fri, 21 Jun 2002 11:58:45 +0200
On Thursday, June 20, 2002, at 11:49 , Marcus H. Mendenhall wrote:
> Thanks, Jack. I made some progress, but I will not spend a lot of time
> before I get my LabVIEW update. Using PyMac_Initialize results in the
> embedded python session working (I can run a dumb script which opens a
> file, writes 'hello world' to it, and closes it). However, even if the
> interpreter opened no windows (that I can see), LabVIEW 5.0 pops up an
> internal error from its window handler and exits as soon as control
> returns to LabVIEW from Python.
When you say "Python opened no windows" you mean that there's also no
Python console window? (the Python console window is just as bothersome
to LabVIEW as any other window).
To be completely sure that Python (and the underlying GUSI and SIOUX
libraries) don't touch any windows you can call
PyMac_SetConsoleHandler(PyMac_DummyReadHandler, PyMac_DummyWriteHandler,
PyMac_DummyWriteHandler) before calling PyMac_Initialize(). See
:Mac:Include:macglue.h for details.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -