diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-04-25 22:07:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-04-25 22:07:27 (GMT) |
commit | 15f1c08d96da1792548d2e3cf17ebd7dd9ba078e (patch) | |
tree | 3a00bcd0b7ff7cae2ab0c08003f2198d36b80207 /Mac/Python/pyGUSISIOUX.cp | |
parent | ee677913df35c8c4c5ea91e3c85a3061f01bb26d (diff) | |
download | cpython-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.cp | 2 |
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); |