Не могу понять в чем у меня ошибка. Все делал по примеру в документации, все равно та же ошибка...
Сам код:
from kivy.app import App
from kivy.uix.image import Image
from kivy.uix.widget import Widget
class Image(App):
def build(self):
root = Widget()
root.add_widget(Image(source = "brother1.png"))
return root
if __name__ == '__main__':
Image().run()
Ошибка
Traceback (most recent call last):
File "picture.py", line 12, in <module>
Image().run()
File "/home/karacb/Desktop/Python/kivy/app.py", line 949, in run
self._run_prepare()
File "/home/karacb/Desktop/Python/kivy/app.py", line 919, in _run_prepare
root = self.build()
File "picture.py", line 7, in build
root.add_widget(Image(souce = "brother1.png"))
File "/home/karacb/Desktop/Python/kivy/app.py", line 567, in __init__
super(App, self).__init__(**kwargs)
File "kivy/_event.pyx", line 245, in kivy._event.EventDispatcher.__init__
TypeError: object.__init__() takes no arguments