from kivy.lang import Builderfrom kivy.base import runTouchAppfrom kivy.clock import Clock
kv="""BoxLayout: Button: text: 'button1' custom_prop: 'prop_value' Button: text: 'button2'"""
def test(t): for widget in root.children: print "%s: %s"%(widget.text, widget.custom_prop)
root = Builder.load_string(kv)Clock.schedule_once(test, 1)runTouchApp(root)
kv="""BoxLayout: Button: text: 'button1' custom_prop: 'prop_value' Button: text: 'button2'
Button: text: 'button3' custom_prop: 'prop_value_3' Button: text: 'button4'
"""
from kivy.uix import buttonbutton.custom_prop = None
kv="""....
> <mailto:kivy-users+unsub...@googlegroups.com>.