I want to create many buttons by add_widget function, but i don't know how to make on_release function on py file. Because 'on_release' in py file can't give the argument 'self.text' to function.
MDRoundFlatButton:
text: "Red"
on_release: app.theme_cls.primary_palette = self.text
And by the way, how to give a hue to an individual button?