2013-07-25, 00:43
Hi all,
Thanks for your help firstly. If you can give me any suggestion, I will be very gratefulness.
My question is "How to control my images at the top of the window?" For example, here is a part of my xml file:
Now I want to change the image, and did it as following:
And my question is.. Why the new image(kashiwagi01_03_01.jpg) is always be covered by the old image(white.png)?
Thanks!
Thanks for your help firstly. If you can give me any suggestion, I will be very gratefulness.
My question is "How to control my images at the top of the window?" For example, here is a part of my xml file:
Code:
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>black.png</texture>
<animation effect="fade" time="200">WindowOpen</animation>
<animation effect="fade" time="200">WindowClose</animation>
</control>
<control type="image" id="1">
<posx>10</posx>
<posy>10</posy>
<width>900</width>
<height>500</height>
<texture>white.png</texture>
<animation effect="fade" time="200">WindowOpen</animation>
<animation effect="fade" time="200">WindowClose</animation>
</control>
Now I want to change the image, and did it as following:
Code:
class Gallery(xbmcgui.WindowXMLDialog):
'''Gallery class
'''
def __init__(self, strXMLname, strFallbackPath):
'''Init function
'''
pass
def showPhotos(self):
'''Display photos on the wall
'''
print("++++++++++++++++++++++++++++++++++++++++++++++")
self.getControl(1).setImage("G:\yuki\kashiwagi01_03_01.jpg")
class GallerywallMain():
'''Main class
'''
def __init__(self):
'''Init function
'''
pass
def showRandomly(self):
'''Show photos and not specify UI pattern
'''
w = Gallery(__template__[0], __settings__.getAddonInfo("path"))
w.doModal()
w.showPhotos()
del w
And my question is.. Why the new image(kashiwagi01_03_01.jpg) is always be covered by the old image(white.png)?
Thanks!