[Pythonmac-SIG] SIOUX Console ( was sys.exit )
Jon Bradley
jbradley@thinqinteractive.com
Wed, 30 Jan 2002 10:34:58 -0500
> From: Paul Miller <paul@fxtech.com>
>
> Can you replace sys.exit with your own function? While you're initializing
> the interpreter, couldn't you just run a string that has a dummy exit
> function and a "sys.exit = my_exit" statement? Similar to how you would
> re-map the stdout and sterr write() calls.
>
>
> While I've got your ear - are you using MacPython with OS/X, and if so,
> have you found a way to keep the SIOUX console from appearing?
Sorry I didn't respond sooner. Yes, I could do that. Jack also recommended
something similiar by creating a PyMac_SetExitFunc() which, if defined would
override the normal sys.exit with my own custom exit func.
On the topic about the SIOUX console, there was a thread about this in Sept.
that discussed the usefulness of a PyMac_SetWindowless() function (Alex P.).
Gary Bringhurst discussed MW 7 and MSL where there was a function "to make
something linked against SIOUX 'windowless'", in his words.
Gary's comments are here:
http://mail.python.org/pipermail/pythonmac-sig/2001-September/004150.html
I do not know what came of this, nor do I know if anyone has succeeded in
making it happen. Alex, have you had any success?
I think I should check sourceforge to see if there are any patches or
unfilled requests for this functionality. As I jump into testing embedded
Python on X, I'll be more and more concerned with this matter in the coming
days I think. One way or the other I've got to look into it. Thanks for
bringing this up.
Jon Bradley
Multimedia Developer
T H I N Q Interactive ------
693 East Avenue - Suite 102
Rochester, New York 14607