How to add a picture in kivy? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to add a picture in kivy?

is there a way i can add a picture to a kivy gui program. i have tried a lot of things and i can not get anything to work for me.

27th Apr 2019, 1:17 AM
rodney
rodney - avatar
1 Answer
+ 2
You can add a picture simply in your kv file: Image: source:'img.png' or you can add image in python: img = Image(source = 'img.png') read kivy documentation for more details: https://kivy.org/doc/stable/api-kivy.uix.image.html There's another way to add photo, too but it should work for you.
30th Apr 2019, 3:09 PM
ΛM!N
ΛM!N - avatar