2015-02-10, 17:57
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:
And then MetOfficeWeather.xml might look like this:
It makes sense to be able to compartmentalise my xml files. Plus some of them will need to be included several times.
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.