Kodi Documentation  20.0
Kodi is an open source media player and entertainment hub.
Library - xbmcgui

GUI functions on Kodi. More...

Collaboration diagram for Library - xbmcgui:

Modules

 Control
 Code based skin access.
 
 Dialog
 Kodi's dialog class
 
 DialogProgress
 Kodi's progress dialog class (Duh!)
 
 DialogProgressBG
 Kodi's background progress dialog class
 
 ListItem
 Selectable window list item.
 
 Action
 Action class.
 
 Window
 GUI window class for Add-Ons.
 

Functions

 getCurrentWindowId ()
 

Function: xbmcgui.getCurrentWindowId()


Returns the id for the current 'active' window as an integer. More...
 
 getCurrentWindowDialogId ()
 

Function: xbmcgui.getCurrentWindowDialogId()


Returns the id for the current 'active' dialog as an integer. More...
 
 getScreenHeight ()
 

Function: getScreenHeight()


Returns the height of this screen. More...
 
 getScreenWidth ()
 

Function: getScreenWidth()


Returns the width of this screen. More...
 

Detailed Description

GUI functions on Kodi.

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

Function Documentation

◆ 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()
..

◆ 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()
..

◆ 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.