Open DaKnig opened 1 month ago
this is by far the most annoying bit of the boilerplate. I always get it wrong. I always forget something. with this we could just have impl ObjectSubclass for DewYtItemList {}
or something just like we have for everything else.
The issue itself is not really actionable. Instead, it should mention having a way to inject something into class_init / instance_init automatically.
every class needs this tiny bit of boilerplate (from the book):
from what I understand we need that because in some cases we may or may not want to call
klass.bind_template_callbacks()
. every single widget I have contains this much boilerplate... and most of them do nothing interesting besides that.suggestions:
klass.bind_template()
could callklass.bind_template_callbacks()
always, with a default empty function forbind_template_callbacks
CompositeTemplate
withimpl ... for T where T : <has derived CompositeTemplate?>
or something