@@ -552,105 +552,6 @@ static PyObject *AEDesc_AEGetDescDataSize(AEDescObject *_self, PyObject *_args)
552552}
553553#endif
554554
555- static PyObject * AEDesc_AESend (AEDescObject * _self , PyObject * _args )
556- {
557- PyObject * _res = NULL ;
558- OSErr _err ;
559- AppleEvent reply ;
560- AESendMode sendMode ;
561- AESendPriority sendPriority ;
562- long timeOutInTicks ;
563- if (!PyArg_ParseTuple (_args , "lhl" ,
564- & sendMode ,
565- & sendPriority ,
566- & timeOutInTicks ))
567- return NULL ;
568- _err = AESend (& _self -> ob_itself ,
569- & reply ,
570- sendMode ,
571- sendPriority ,
572- timeOutInTicks ,
573- upp_AEIdleProc ,
574- (AEFilterUPP )0 );
575- if (_err != noErr ) return PyMac_Error (_err );
576- _res = Py_BuildValue ("O&" ,
577- AEDesc_New , & reply );
578- return _res ;
579- }
580-
581- static PyObject * AEDesc_AEResetTimer (AEDescObject * _self , PyObject * _args )
582- {
583- PyObject * _res = NULL ;
584- OSErr _err ;
585- if (!PyArg_ParseTuple (_args , "" ))
586- return NULL ;
587- _err = AEResetTimer (& _self -> ob_itself );
588- if (_err != noErr ) return PyMac_Error (_err );
589- Py_INCREF (Py_None );
590- _res = Py_None ;
591- return _res ;
592- }
593-
594- static PyObject * AEDesc_AESuspendTheCurrentEvent (AEDescObject * _self , PyObject * _args )
595- {
596- PyObject * _res = NULL ;
597- OSErr _err ;
598- if (!PyArg_ParseTuple (_args , "" ))
599- return NULL ;
600- _err = AESuspendTheCurrentEvent (& _self -> ob_itself );
601- if (_err != noErr ) return PyMac_Error (_err );
602- Py_INCREF (Py_None );
603- _res = Py_None ;
604- return _res ;
605- }
606-
607- static PyObject * AEDesc_AEResumeTheCurrentEvent (AEDescObject * _self , PyObject * _args )
608- {
609- PyObject * _res = NULL ;
610- OSErr _err ;
611- AppleEvent reply ;
612- AEEventHandlerUPP dispatcher__proc__ = upp_GenericEventHandler ;
613- PyObject * dispatcher ;
614- if (!PyArg_ParseTuple (_args , "O&O" ,
615- AEDesc_Convert , & reply ,
616- & dispatcher ))
617- return NULL ;
618- _err = AEResumeTheCurrentEvent (& _self -> ob_itself ,
619- & reply ,
620- dispatcher__proc__ , (long )dispatcher );
621- if (_err != noErr ) return PyMac_Error (_err );
622- Py_INCREF (Py_None );
623- _res = Py_None ;
624- Py_INCREF (dispatcher ); /* XXX leak, but needed */
625- return _res ;
626- }
627-
628- static PyObject * AEDesc_AEGetTheCurrentEvent (AEDescObject * _self , PyObject * _args )
629- {
630- PyObject * _res = NULL ;
631- OSErr _err ;
632- if (!PyArg_ParseTuple (_args , "" ))
633- return NULL ;
634- _err = AEGetTheCurrentEvent (& _self -> ob_itself );
635- if (_err != noErr ) return PyMac_Error (_err );
636- Py_INCREF (Py_None );
637- _res = Py_None ;
638- return _res ;
639- }
640-
641- static PyObject * AEDesc_AESetTheCurrentEvent (AEDescObject * _self , PyObject * _args )
642- {
643- PyObject * _res = NULL ;
644- OSErr _err ;
645- if (!PyArg_ParseTuple (_args , "" ))
646- return NULL ;
647- _err = AESetTheCurrentEvent (& _self -> ob_itself );
648- if (_err != noErr ) return PyMac_Error (_err );
649- Py_INCREF (Py_None );
650- _res = Py_None ;
651- return _res ;
652- }
653-
654555static PyObject * AEDesc_AEResolve (AEDescObject * _self , PyObject * _args )
655556{
656557 PyObject * _res = NULL ;
@@ -715,18 +616,6 @@ static PyMethodDef AEDesc_methods[] = {
715616 {"AEGetDescDataSize" , (PyCFunction )AEDesc_AEGetDescDataSize , 1 ,
716617 "() -> (Size _rv)" },
717618#endif
718- {"AESend" , (PyCFunction )AEDesc_AESend , 1 ,
719- "(AESendMode sendMode, AESendPriority sendPriority, long timeOutInTicks) -> (AppleEvent reply)" },
720- {"AEResetTimer" , (PyCFunction )AEDesc_AEResetTimer , 1 ,
721- "() -> None" },
722- {"AESuspendTheCurrentEvent" , (PyCFunction )AEDesc_AESuspendTheCurrentEvent , 1 ,
723- "() -> None" },
724- {"AEResumeTheCurrentEvent" , (PyCFunction )AEDesc_AEResumeTheCurrentEvent , 1 ,
725- "(AppleEvent reply, EventHandler dispatcher) -> None" },
726- {"AEGetTheCurrentEvent" , (PyCFunction )AEDesc_AEGetTheCurrentEvent , 1 ,
727- "() -> None" },
728- {"AESetTheCurrentEvent" , (PyCFunction )AEDesc_AESetTheCurrentEvent , 1 ,
729- "() -> None" },
730619 {"AEResolve" , (PyCFunction )AEDesc_AEResolve , 1 ,
731620 "(short callbackFlags) -> (AEDesc theToken)" },
732621 {NULL , NULL , 0 }
@@ -928,67 +817,6 @@ static PyObject *AE_AEReplaceDescData(PyObject *_self, PyObject *_args)
928817}
929818#endif
930819
931- static PyObject * AE_AEProcessAppleEvent (PyObject * _self , PyObject * _args )
932- {
933- PyObject * _res = NULL ;
934- OSErr _err ;
935- EventRecord theEventRecord ;
936- if (!PyArg_ParseTuple (_args , "O&" ,
937- PyMac_GetEventRecord , & theEventRecord ))
938- return NULL ;
939- _err = AEProcessAppleEvent (& theEventRecord );
940- if (_err != noErr ) return PyMac_Error (_err );
941- Py_INCREF (Py_None );
942- _res = Py_None ;
943- return _res ;
944- }
945-
946- static PyObject * AE_AEGetInteractionAllowed (PyObject * _self , PyObject * _args )
947- {
948- PyObject * _res = NULL ;
949- OSErr _err ;
950- AEInteractAllowed level ;
951- if (!PyArg_ParseTuple (_args , "" ))
952- return NULL ;
953- _err = AEGetInteractionAllowed (& level );
954- if (_err != noErr ) return PyMac_Error (_err );
955- _res = Py_BuildValue ("b" ,
956- level );
957- return _res ;
958- }
959-
960- static PyObject * AE_AESetInteractionAllowed (PyObject * _self , PyObject * _args )
961- {
962- PyObject * _res = NULL ;
963- OSErr _err ;
964- AEInteractAllowed level ;
965- if (!PyArg_ParseTuple (_args , "b" ,
966- & level ))
967- return NULL ;
968- _err = AESetInteractionAllowed (level );
969- if (_err != noErr ) return PyMac_Error (_err );
970- Py_INCREF (Py_None );
971- _res = Py_None ;
972- return _res ;
973- }
974-
975- static PyObject * AE_AEInteractWithUser (PyObject * _self , PyObject * _args )
976- {
977- PyObject * _res = NULL ;
978- OSErr _err ;
979- long timeOutInTicks ;
980- if (!PyArg_ParseTuple (_args , "l" ,
981- & timeOutInTicks ))
982- return NULL ;
983- _err = AEInteractWithUser (timeOutInTicks ,
984- (NMRecPtr )0 ,
985- upp_AEIdleProc );
986- if (_err != noErr ) return PyMac_Error (_err );
987- Py_INCREF (Py_None );
988- _res = Py_None ;
989- return _res ;
990- }
991-
992820static PyObject * AE_AEInstallEventHandler (PyObject * _self , PyObject * _args )
993821{
994822 PyObject * _res = NULL ;
@@ -1177,14 +1005,6 @@ static PyMethodDef AE_methods[] = {
11771005 {"AEReplaceDescData" , (PyCFunction )AE_AEReplaceDescData , 1 ,
11781006 "(DescType typeCode, Buffer dataPtr) -> (AEDesc theAEDesc)" },
11791007#endif
1180- {"AEProcessAppleEvent" , (PyCFunction )AE_AEProcessAppleEvent , 1 ,
1181- "(EventRecord theEventRecord) -> None" },
1182- {"AEGetInteractionAllowed" , (PyCFunction )AE_AEGetInteractionAllowed , 1 ,
1183- "() -> (AEInteractAllowed level)" },
1184- {"AESetInteractionAllowed" , (PyCFunction )AE_AESetInteractionAllowed , 1 ,
1185- "(AEInteractAllowed level) -> None" },
1186- {"AEInteractWithUser" , (PyCFunction )AE_AEInteractWithUser , 1 ,
1187- "(long timeOutInTicks) -> None" },
11881008 {"AEInstallEventHandler" , (PyCFunction )AE_AEInstallEventHandler , 1 ,
11891009 "(AEEventClass theAEEventClass, AEEventID theAEEventID, EventHandler handler) -> None" },
11901010 {"AERemoveEventHandler" , (PyCFunction )AE_AERemoveEventHandler , 1 ,
0 commit comments