Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Library - xbmcgui

GUI functions on Kodi. More...

Topics

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

Functions

 getCurrentWindowId ()
 

Function: xbmcgui.getCurrentWindowId()


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

Function: xbmcgui.getCurrentWindowDialogId()


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

Function: getScreenHeight()


Returns the height of this screen.
 
 getScreenWidth ()
 

Function: getScreenWidth()


Returns the width of this screen.
 

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.