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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…