GUI tutorial

= Introduction =

This How To will explain several ways of showing a "Hello World" popup on screen

= Examples =

Using xbmc modules
Simple example using xbmc python modules showing a notification dialog that will show for 5 seconds.

using build-in functions
More info on Built-In functions can be found here: List of built-in functions We will two examples. One with just a simple notification dialog and the other with the same dialog but with using variables. It all depends on how extended you scripts will be. Since we require all used strings to be localized (translatable) we recommend the second option.

using xbmcgui module
This will show a OK dilaog box with the message More info on xbmcgui functions can be found here: [ http://mirrors.kodi.tv/docs/python-docs/xbmcgui.html#Dialog ]

Using xbmc modules & JSON-RPC API
More info on JSON-RPC API can be found here: JSON-RPC API

This JSON-RPC command send through various ways and will execute the addon code that is shown below.

This python code will create several controls using xbmcgui module and fill these will the message send through JSON-RPC:

= See also = Development:
 * Addon Settings
 * Python development
 * Skinning