Pass variables from .py to .kv file
问题 I am trying to use variables from python file to .kv file so I searched similar questions and found out the way use Property and coded like this: # in python file class Test2App(App): abcd = StringProperty('test') def build(self): return presentation # in kv file <MyButton@Button>: text: "contents (%s)"%(app.abcd) background_color: (255, 255, 255,1)` and an error comes up. AttributeError: 'NoneType' object has no attribute 'bind' File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder