Kivy Images show black Screen

719 views
Skip to first unread message

jo...@gohyperion.com

unread,
Mar 30, 2016, 12:07:07 PM3/30/16
to Kivy users support
I am trying to display a set of rotating images using Kivy on a Raspberry PI. 

[INFO   ] [Kivy        ] v1.9.0-dev
[INFO   ] [Python      ] v2.7.3 (default, Mar 18 2014, 05:13:23) 
[GCC 4.6.3]

In my kv file I have

<PhoenixDisplay>:
BoxLayout:
Image:   
id: imgAdPage
pos: self.pos
                        size: (root.width/2), root.height
allow_stretch: True
source: "ads/ritasadNew.png"

in the PhoenixDisplay Class, I have the following method that I call to change the image

    def changeAd(self,imageName):
        obj = self.ids["imgAdPage"]
        obj.source=imageName

The initial image display fine, but any image file I give will show black instead of the image.

How can I change images with the Image Widget?

qua non

unread,
Mar 30, 2016, 8:09:18 PM3/30/16
to kivy-...@googlegroups.com
Issue is with the low act of graphics memory. Increase the amt of memory available tot the GPU and things should start working a lot better.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jo...@gohyperion.com

unread,
Mar 31, 2016, 11:17:04 AM3/31/16
to Kivy users support
vcgencmd get_mem gpu 

showed gpu=128M

I increased it to 512M and I'm still seeing the same thing. Is there a Kivy setting in config.ini
Reply all
Reply to author
Forward
0 new messages