Use includes when working with WindowXML
#1
Hi,

In a python addon, Is it possible to define and use <includes> with windows that are created with WindowXML?

Eg, my addon might have a call like this:

Code:
window = xbmcgui.WindowXML('MetOfficeWeather.xml', ADDON.getAddonInfo('path'))

And then MetOfficeWeather.xml might look like this:

Code:
<control>
...
<include>MetOfficeLeftPane</include>
...
</control>

It makes sense to be able to compartmentalise my xml files. Plus some of them will need to be included several times.
Reply
#2
I guess not. Sad
Reply
#3
Sorry, would have responded earlier if I had seen this question.

No, addons cannot use Includes.xml, Font.xml, Default.xml ...

And there are certain window xmls that we cant use either, though these arent labelled as such anywhere that I have seen.
Reply

Logout Mark Read Team Forum Stats Members Help
Use includes when working with WindowXML0