How do I communicate between python and a mac application?

后端 未结 5 1778
慢半拍i
慢半拍i 2021-01-20 20:34

This might be a vague question, but I failed to rephrase it properly. So here\'s an explanation.

I developed an app that was originally developed as a Mac applicatio

5条回答
  •  被撕碎了的回忆
    2021-01-20 21:30

    PyObjC is perhaps what you're looking for:

    PyObjC (pronounced pie-obz-see) is the key piece which makes it possible to write Cocoa applications in Python. It enables Python objects to message Objective-C objects as if they're fellow Python objects, and likewise facilitates Objective-C objects to message Python objects as brethren.

    You could write a bridge between your python app and your cocoa app using PyObjC.

提交回复
热议问题