2011-06-16, 01:04
I'm just trying to get the some picture paths from a file and then display the picture.
This is what I'm doing:
arquivo = open('d:\\temp\\listagem.txt', "r")
List = arquivo.readlines()
..some..python code here...
self.addControl(xbmcgui.ControlImage(0,0,800,600, List[0]))
But I got the following error in the log:
ERROR: Texture manager unable to load file: d:\\linux\\pictures\\02052010047.jpg
If I change the controlImage line to the following, it works:
self.addControl(xbmcgui.ControlImage(0,0,800,600, 'd:\\linux\\pictures\\02052010047.jpg'))
What am I doing wrong? Any idea?
This is what I'm doing:
arquivo = open('d:\\temp\\listagem.txt', "r")
List = arquivo.readlines()
..some..python code here...
self.addControl(xbmcgui.ControlImage(0,0,800,600, List[0]))
But I got the following error in the log:
ERROR: Texture manager unable to load file: d:\\linux\\pictures\\02052010047.jpg
If I change the controlImage line to the following, it works:
self.addControl(xbmcgui.ControlImage(0,0,800,600, 'd:\\linux\\pictures\\02052010047.jpg'))
What am I doing wrong? Any idea?