Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
809 views
in Technique[技术] by (71.8m points)

python - kivy ImageRightWidget -> AttributeError: 'super' object has no attribute '__getattr__'

This is a working example with image on the left.

from kivymd.app import MDApp
from kivy.lang import Builder

KV = '''
Screen:
    MDList:
        OneLineIconListItem:
            text: "yolo"
            ImageLeftWidget:
                source: "img_success.png"
        OneLineIconListItem:
            text: "yala"
            ImageLeftWidget:
                source: "img_success.png"
'''

class MyApp(MDApp):
    def build(self):
        screen = Builder.load_string(KV)
        print(screen)
        return screen

MyApp().run()

But when I want to change ImageLeftWidget to ImageRightWidget, I have this error message:

File "kivyproperties.pyx", line 863, in kivy.properties.ObservableDict.__getattr_
AttributeError: 'super' object has no attribute '__getattr__'

It looks like a fundamental bug that I can't, isn't it ?

question from:https://stackoverflow.com/questions/65940379/kivy-imagerightwidget-attributeerror-super-object-has-no-attribute-geta

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...