[Patches] [ python-Patches-468805 ] Embed invisibly

noreply@sourceforge.net noreply@sourceforge.net
Sun, 07 Oct 2001 09:29:20 -0700


Patches item #468805, was opened at 2001-10-07 09:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=468805&group_id=5470

Category: Macintosh
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexandre Parenteau (aubonbeurre)
Assigned to: Jack Jansen (jackjansen)
Summary: Embed invisibly

Initial Comment:
Abstract: Application that want to embed Python 
have often their own menu bar and stdin/stdout 
console scheme. The current MacPython does not 
allow to bypass the SIOUX console with a user 
defined one.

This patch gives the ability for a client application 
which embeds Python to silently defines a console 
handler to be used by Python.

In macglue.h:

/* from pyGUSISIOUX.cp */
typedef long (*PyWriteHandler)(char *buffer, long 
n);
typedef long (*PyReadHandler)(char *buffer, long 
n);

void PyMac_SetConsoleHandler(PyReadHandler 
stdinH, PyWriteHandler stdoutH,
	PyWriteHandler stderrH);


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=468805&group_id=5470