Kivy: Can't reach id's (AttributeError: 'super' object has no attribute '__getattr__')

Viewed 21

This is not my first time using id's, in fact I had no problem just minutes ago. But now I keep getting the error on the title. I'm simplifying the code so the question will be short and clear.

This is part of my .py file

 class Game(Screen):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.ExampleFunction()

    def ExampleFunction(self):
        self.ids.myButton.text = "Something Different"

And this is a part of my .kv file

Manager:
    Game:

<Game>:
    name: "Game"
    Button:
        id: myButton
        text: "Example Text"

I looked up the existing questions but still couldn't make it work. So I'd be glad if you help me

0 Answers
Related