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?