Kaydet (Commit) 62d24a0f authored tarafından Jack Jansen's avatar Jack Jansen

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

üst e9fb3d6d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment