Modules | Classes
Subclass - WindowXML

GUI xml window class. More...

Collaboration diagram for Subclass - WindowXML:


 Subclass - WindowDialogXML
 GUI xml window dialog


class  XBMCAddon::xbmcgui::WindowXML

Detailed Description

GUI xml window class.

{ xbmcgui.WindowXML(xmlFilename, scriptPath[, defaultSkin, defaultRes]) }

Creates a new xml file based window class.

This class include also all calls from Window.
xmlFilenamestring - the name of the xml file to look for.
scriptPathstring - path to script. used to fallback to if the xml doesn't exist in the current skin. (eg xbmcaddon.Addon().getAddonInfo('path'))
defaultSkin[opt] string - name of the folder in the skins path to look in for the xml. (default='Default')
defaultRes[opt] string - default skins resolution. (1080i, 720p, ntsc16x9, ntsc, pal16x9 or pal. default='720p')
isMedia[opt] bool - if False, create a regular window. if True, create a mediawindow. (default=False)
Exceptionif more then 200 windows are created.
Skin folder structure is e.g. resources/skins/Default/720p

Deleting this window will activate the old window that was active and resets (not delete) all controls that are associated with this window.

New param added isMedia.


win = xbmcgui.WindowXML('script-Lyrics-main.xml', xbmcaddon.Addon().getAddonInfo('path'), 'default', '1080i', False)
del win

On functions defined input variable controlId (GUI control identifier) is the on window.xml defined value behind type added with id="..." and used to identify for changes there and on callbacks.

<control type="label" id="31">
<description>Title Label</description>
<control type="progress" id="32">
<description>progress control</description>