[Pythonmac-SIG] 2 proposals for embedding MacPython in a C++ app

Jack Jansen jack@oratrix.nl
Sat, 08 Sep 2001 01:05:54 +0200


Recently, Alexandre Parenteau <aparente@adobe.com> said:
> Hi,
> 
> 1 - Provide a registry mechanism for the MacPython preferences
> 2 - Provide a PyMac_SetWindowless function

I like your (1), it would also solve the problem that to override one
prefernce you have to override them all, and that a new version of the
prefs resource means I have to put in backward compatability hacks or
all .rsrc files for applets will break. I think I'll want to do this
myself, as there's various issues with overriding prefs and such that
I feel are important. Maybe put in a sourceforge change request, so
I'll remember?

As to (2): I like the idea, but as we've discussed offline I don't
have a clear picture of when you would want to call this (before
PyMac_Initialize()? At any time?) and exactly what it should do
(close stdin/stdout/stderr? More?). Do you think you can come up with
a patch yourself?

For the benefit of the rest of the list: I think a way to forbid
Python to touch the UI on its own initiative would make it possible
(or at least safer) to create FBAs in Python, use Python for Netscape
Plugins and all that sort of things.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack        | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm