xbmc
Modules | Classes

GUI window class for Add-Ons. More...

Collaboration diagram for Window:

Modules

 Callback functions from Kodi to add-on
 GUI window callback functions.
 
 Subclass - WindowDialog
 GUI window dialog class for Add-Ons.
 
 Subclass - WindowXML
 GUI xml window class.
 

Classes

class  XBMCAddon::xbmcgui::Window
 

Detailed Description

GUI window class for Add-Ons.

This class allows over their functions to create and edit windows that can be accessed from an Add-On.

Likewise, all functions from here as well in the other window classes WindowDialog, WindowXML and WindowXMLDialog with inserted and available.


Constructor for window

{ xbmcgui.Window([existingWindowId]): }

Creates a new from Add-On usable window class. This is to create window for related controls by system calls.

Parameters
existingWindowId[opt] Specify an id to use an existing window.
Exceptions
ValueErrorif supplied window Id does not exist.
Exceptionif more then 200 windows are created.

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


Example:

..
win = xbmcgui.Window()
width = win.getWidth()
..