Don't call PyMac_HandleEvent if we're in unix-Python.

This commit is contained in:
Jack Jansen 2001-09-01 23:38:50 +00:00
parent e9fb3d6db3
commit 62d24a0f50
2 changed files with 4 additions and 0 deletions

View File

@ -39,10 +39,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
{
if ( PyOS_InterruptOccurred() )
return 1;
#if !TARGET_API_MAC_OSX
if ( PyMac_HandleEvent(theEvent) < 0 ) {
PySys_WriteStderr("Exception in user event handler during AE processing\n");
PyErr_Clear();
}
#endif
return 0;
}

View File

@ -105,10 +105,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
{
if ( PyOS_InterruptOccurred() )
return 1;
#if !TARGET_API_MAC_OSX
if ( PyMac_HandleEvent(theEvent) < 0 ) {
PySys_WriteStderr("Exception in user event handler during AE processing\\n");
PyErr_Clear();
}
#endif
return 0;
}