summaryrefslogtreecommitdiffstats
path: root/Mac/Python/pyGUSISIOUX.cp
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-04-25 22:07:27 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-04-25 22:07:27 (GMT)
commit15f1c08d96da1792548d2e3cf17ebd7dd9ba078e (patch)
tree3a00bcd0b7ff7cae2ab0c08003f2198d36b80207 /Mac/Python/pyGUSISIOUX.cp
parentee677913df35c8c4c5ea91e3c85a3061f01bb26d (diff)
downloadcpython-15f1c08d96da1792548d2e3cf17ebd7dd9ba078e.zip
cpython-15f1c08d96da1792548d2e3cf17ebd7dd9ba078e.tar.gz
cpython-15f1c08d96da1792548d2e3cf17ebd7dd9ba078e.tar.bz2
- Raise console window on input. Fixes Carbon hang.
- Better handling of menu bar save/restore. - Override abort() so it honours the "keep console window" flag.
Diffstat (limited to 'Mac/Python/pyGUSISIOUX.cp')
-rw-r--r--Mac/Python/pyGUSISIOUX.cp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Python/pyGUSISIOUX.cp b/Mac/Python/pyGUSISIOUX.cp
index 795e10e..f26216b 100644
--- a/Mac/Python/pyGUSISIOUX.cp
+++ b/Mac/Python/pyGUSISIOUX.cp
@@ -102,6 +102,7 @@ GUSISIOUXSocket::Initialize()
GUSISetHook(GUSI_EventHook+diskEvt, (GUSIHook)SIOUXHandleOneEvent);
GUSISetHook(GUSI_EventHook+activateEvt, (GUSIHook)SIOUXHandleOneEvent);
GUSISetHook(GUSI_EventHook+osEvt, (GUSIHook)SIOUXHandleOneEvent);
+ PyMac_InitMenuBar();
}
GUSISIOUXSocket::~GUSISIOUXSocket()
{
@@ -113,6 +114,7 @@ ssize_t GUSISIOUXSocket::read(const GUSIScatterer & buffer)
if ( !initialized ) Initialize();
GUSIStdioFlush();
PyMac_OutputSeen();
+ PyMac_RaiseConsoleWindow();
return buffer.SetLength(
ReadCharsFromConsole((char *) buffer.Buffer(), (int)buffer.Length()));
GUSIContext::Yield(kGUSIPoll);