kivy shows white screen for png - Raspberry Pi Forums


hello reader,
have issue pasberry pi 3.
when execute following code:

code: select all

import kivy kivy.app import app kivy.uix.button import button kivy.uix.image import image  class myapp(app):   def build(self):     return image(source='foxtrotjobs.png')  myapp().run()
the attached 7" display goes white until hit ctrl-c , doesn't show image.
when replace source jpg works.
what's going on here?
raspberry pi not able show png files on cli?

there's no problem raspberry pi. don't know kivy modules such pillow there dependencies need installed first enable different functionality, such libpng12-dev. have thought there if using default raspbian jessie. can run

code: select all

from pil import image image.open('foxtrotjobs.png').show()


raspberrypi



Comments