Adding menu items & buttons
#1
i'm trying to add an additonal item to the main menu of xbmc by editing the home.xml.
i have added the following piece to the file and edited the numbers so the menu will work when moving around.

<control>
<description>tv program normal push button</description>
<type>button</type>
<id>11</id>
<posx>270</posx>
<posy>449</posy>
<width>180</width>
<height>35</height>
<label>4</label>
<font>font14</font>
<execute>q:\scripts\tvprogram.py</execute>
<onleft>10</onleft>
<onright>100</onright>
<onup>9</onup>
<ondown>2</ondown>
<textoffsetx>13</textoffsetx>
</control>

i have tried both the <execute> and the <script> options for executing the python script. none of them works.
i looks like it tries to execute the command but for some reason it fails and exits to the xbmc again.
i have succesfully added and executed the same script to the popup menu together with the movie trailers and web radio.
i that case it works fine.

any clues?
cheers

/g/
Reply

Logout Mark Read Team Forum Stats Members Help
Adding menu items & buttons0