Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
Library - xbmcgui

Detailed Description

GUI functions on Kodi.

Offers classes and functions that manipulate the Graphical User Interface through windows, dialogs, and various control widgets.

Topics

 Control
 Code based skin access.
 
 Dialog
 Kodi's dialog class
 
 ListItem
 Selectable window list item.
 
 Action
 
 Window
 GUI window class for Add-Ons.
 

Function Documentation

◆ getCurrentWindowId()

getCurrentWindowId ( )

Function: xbmcgui.getCurrentWindowId()


Returns the id for the current 'active' window as an integer.

Returns
The currently active window Id

Example:

..
wid = xbmcgui.getCurrentWindowId()
..

◆ getCurrentWindowDialogId()

getCurrentWindowDialogId ( )

Function: xbmcgui.getCurrentWindowDialogId()


Returns the id for the current 'active' dialog as an integer.

Returns
The currently active dialog Id

Example:

..
wid = xbmcgui.getCurrentWindowDialogId()
..

◆ getScreenHeight()

getScreenHeight ( )

Function: getScreenHeight()


Returns the height of this screen.

Returns
Screen height

v18 Python API changes
New function added.

◆ getScreenWidth()

getScreenWidth ( )

Function: getScreenWidth()


Returns the width of this screen.

Returns
Screen width

v18 Python API changes
New function added.