2011-11-25, 22:40
Hi,
I've just started to learn XBMC scripting and everything has been going smooth, so far.
But now I have encountered a problem I just can't seem to solve.
From the XML-file:
And from the python script:
Why doesn't the button get focus? Maybe I have misunderstood something, but shouldn't the button show my chosen image when I hit <Enter>?
I've just started to learn XBMC scripting and everything has been going smooth, so far.
But now I have encountered a problem I just can't seem to solve.
From the XML-file:
PHP Code:
<control type="button" id="3">
<posx>180</posx>
<posy>200</posy>
<width>180</width>
<texturefocus>Subtitles.png</texturefocus>
<texturenofocus>mynormaltexture.png</texturenofocus>
<label>Button1</label>
<onfocus>-</onfocus>
</control>
PHP Code:
ACTION_SELECT_ITEM = 7
def onAction(self, action):
if(action == ACTION_PREVIOUS_MENU or action == ACTION_PARENT_DIR):
self.close()
if(action == ACTION_SELECT_ITEM):
self.SetFocusId(3)
Why doesn't the button get focus? Maybe I have misunderstood something, but shouldn't the button show my chosen image when I hit <Enter>?