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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 23 Oct 2001 07:39:38 -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: Closed
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);


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

>Comment By: Jack Jansen (jackjansen)
Date: 2001-10-23 07:39

Message:
Logged In: YES 
user_id=45365

Patch applied, with minor modifications.


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

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