Don't call PyMac_HandleEvent if we're in unix-Python.
This commit is contained in:
parent
e9fb3d6db3
commit
62d24a0f50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue