Skip to content Skip to sidebar Skip to footer

How Can I Access Object Properties Of Another Class In Kivy Without Getting Attributeerror: 'super' Object Has No Attribute '__getattr__'

Hi i was trying to access the property of an object from a different class using self.ids.. but i get this annoying error AttributeError: 'super' object has no attribute '__getatt

Solution 1:

If we observe we see that the children of Get_Boys are button_b and label_b so those are the elements that can be accessed through ids. But if we look in Get_People, Get_Boys is a child so you can access Get_People through the parent method, and then access through root_lbl:

class Get_Boys(BoxLayout):
     label_b=ObjectProperty()

     def show(self):
        self.parent.root_lbl.text='i am called'

Post a Comment for "How Can I Access Object Properties Of Another Class In Kivy Without Getting Attributeerror: 'super' Object Has No Attribute '__getattr__'"