Hi Roman,
I'm unable to set a background image (using v17.3, win7, png file, size is 1280x720) for my window. I don't get any (clear to me) error message, but the background also gets no background image. Something is wrong...
This is a snippet of my init code:
Code:
class BIUinfo_Builder_Window(pyxbmct.AddonFullWindow):
def __init__(self, title=''):
# You need to call base class' constructor.
super(BIUinfo_Builder_Window, self).__init__(title)
# Set the window width, height and the grid resolution.
self.setGeometry(1280, 720, 17, 16)
# image located at:
my_image = xbmc.validatePath(ADDONPATH + '/resources/media/t.png')
log("my_image = %s" % my_image)
self.setBackground(my_image)
self.create_add_mpls_controls()
I'm sure the path to t.png is correct, I get this in my Kodi.log:
Code:
10:59:40.338 T:1868 DEBUG: ------ Window Init (DialogConfirm.xml) ------
10:59:40.338 T:1868 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
10:59:40.426 T:1868 DEBUG: Bluray iso utils: my_image = C:\Users\Max Renn\AppData\Roaming\Kodi\addons\script.service.bluray_iso_utils\resources\media\t.png
10:59:44.272 T:1868 DEBUG: Bluray iso utils: user_language = vls
10:59:48.265 T:1196 DEBUG: Activating window ID: 0
10:59:48.265 T:1196 ERROR: Unable to locate window with id -10000. Check skin files
10:59:48.277 T:1196 DEBUG: Activating window ID: 13000
10:59:48.515 T:1196 DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
ERROR: Unable to locate window with id -10000. Check skin files
This line comes a little bit later (but before the window is displayed). I first thought this was connected to my problem, but I still get this error if I disable the background line (#self.setBackground(my_image)).
I am at a loss, again.
What am I doing wrong? Does it work for you?
Thanks!