2017-07-26, 15:39
I have an issue where my ControlImage is not showing on Kodi 17 on Pis. It works on my Mac though so its hard to pinpoint if is a raspberry pi specific issue. My code looks like this.
Does anyone have an idea of what this could be happening?
Code:
##Create Window
__display_window__ = xbmcgui.Window(12005)
##Banner Image
url ='http://www.example.com/image.png'
__banner_image__ = xbmcgui.ControlImage(__display_window__.getWidth(), __display_window__.getHeight(), 500, 200, url)
__display_window__.addControl(__banner_image__)
##Example with text
__text_title__ = xbmcgui.ControlTextBox(0, __display_window__.getHeight() - 10, 1130, 50)
__display_window__.addControl(__text_title__)
__text_title__.setText( 'Watch at home on ' + name + '!!!' )