mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Don't call PyMac_HandleEvent if we're in unix-Python.
This commit is contained in:
parent
e9fb3d6db3
commit
62d24a0f50
2 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue