My understanding is that there are currently no plans to be able to handle custom blocks as a generally accepted work around seems to be to implement some bridging code in Objective C. While it would be great (and somehow satisfying) if it were possible to do everyhting from Python, I still find the need to callback my Python code. Please tell me if there is a better way of doing this without grunging around in the details of Objective C, but I am using the @protocol functionality. When an function from a Framework calls a delegate, for example, this works very well in pyobjus. Unfortunately, it doesn't seem possible to define your own delegates, so I am having to "hack" an existing one like so:
There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe.
My understanding is that there are currently no plans to be able to handle custom blocks as a generally accepted work around seems to be to implement some bridging code in Objective C. While it would be great (and somehow satisfying) if it were possible to do everyhting from Python, I still find the need to callback my Python code. Please tell me if there is a better way of doing this without grunging around in the details of Objective C, but I am using the @protocol functionality. When an function from a Framework calls a delegate, for example, this works very well in pyobjus. Unfortunately, it doesn't seem possible to define your own delegates, so I am having to "hack" an existing one like so:
test.m:
test.py:
FWIW, I'd be happy to contribute to this project, if that is helpful. If you encourage this, are there any basic guidelines or tips I should follow?
Thanks!