Here is the exerpt of my code on the .py side that cause the problem:
class ScreenMath(Screen):
def __init__(self,**kwargs):
super(ScreenMath,self).__init__(**kwargs)
self.ids.anchmath.ids.grdmath.ids.score.text = str("Score:" + "3")
And the .kv side:
<ScreenMath>:
AnchorLayout:
id: "anchmath"
...
GridLayout:
id: "grdmath"
...
Button:
id: "score"
When I run the code, an AttributeError occurs :
File "kivy\properties.pyx", line 841, in kivy.properties.ObservableDict.__getattr__
AttributeError: 'super' object has no attribute '__getattr__'
As you saw, I want to change the text of my value (3 will later be a variable) when the screen in initiated, but maybe there is a better way to do that.