PDA

View Full Version : a question about <include> tag



keepsimple
June 11th, 2009, 12:03 AM
Hi,

I am reading the BBC iPlayer app source to learn more about the python app. One question is that, there is such line in the 720p/main.xml:

<include>Main_Menu_Fade_Animation</include>

Is the name in <include> tag a Python function ? If yes, where is the function source code? I could not find it in the app directory.

thanks
Han

nerdynick
June 13th, 2009, 12:06 PM
This page goes over the basics of includes

http://xbmc.org/wiki/?title=Skinning_XBMC#Includes

By adding <include>SOMETHING</include> to you main.xml you are asking the API to Lookup what was passed in for the named tag in your includes.xml file, and display what controls, text, or what ever else is contained within.

keepsimple
June 13th, 2009, 12:19 PM
Thanks a bunch for the pointer. This XBMC page has lots of good stuff!

btw, I couldn't find the includes.xml in the app directory though. Maybe it is stored in the boxee server ?

~/.boxee$ find . -name 'includes.xml' -print
~/.boxee$

nerdynick
June 13th, 2009, 01:26 PM
You can create your own in your 720p folder or the primary one for Boxee is in

Linux - /opt/boxee/skin/Boxee Skin NG/720p/includes.xml
Mac - Library/Application Support/BOXEE/skin/Boxee Skin NG/720p/includes.xml

idan
June 14th, 2009, 05:41 AM
mmm... have to say i was sure this does no work...
have you tried it and it worked for you?

idan

nerdynick
June 15th, 2009, 02:37 PM
Ya this doesn't work as per our other thread on Includes

bill hong
July 27th, 2009, 08:05 AM
Thanks for all your post