Well made its a crap idea, but t I don't think so...
@omz , we know it's not possible to sub class ui.Button etc. hmmm, maybe objc... Does something... I am not there yet with objc_utils.
But I have seen many work arounds posted in the forum about this. And I am sure they are workable and great. But I think the reason it hasn't taken off is because you really feel like you are going against the grain. Meaning it's not natural for Pythonista.
But if you were to make some stubs/base class or something in ui.py so for example we could inherit from a class called ui.ButtonExt, ui.TextViewExt etc...
It's not as much about the complexity of the code, but that we are in the Wild West. If you roll your own, everytime you post something or share something, that needs to be around. But if it's in ui.py, we can sort of subclass the ui. Elements without any distribution issues.
I think it's an important distinction. just because we can do it (we the users) does not necessarily mean we want to do it or think we should do it.
Unfortunately, this puts more on you. It's not my desire, but your std Libs are very important.
Back to inheriting from a Python class in ui.py. I am not sure how much work it is. But in my mind, not a lot. The main thing is that we can extend the classes in a way that just works in Pythonista, without inventing our own thing. No need for you to add any functionality (well you could iterate though kwargs and set the attrs 😳) You could also reserve some methods attrs etc... That you might implement later.
I haven't tried to give any code examples. I am not good enough. But I am sure it would be evident to you how to do this.
Just saying 😎