Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

ControlLabel.setLabel crashes Kodi

$
0
0
For a project I want to start I was trying to adjust the default Estuary skin. As such, I was investigating how to dynamically change the contents of a label.
However, Kodi crashes on the setLabel function call. Am I missing something here?
Log doesn't show anything why it crashed, even when on debug log.

I have verified:
- The script is running (verified through embedding a log earlier)
- The ControlLabel object is obtained through the getControl function (verified through splitting the function calls)

Running on Debian (Bullseye) on a rasp 4b. 

I have added the following:
Home.xml:
Home.xml:

<control type="label" id="799">
<label>Test</label>
<top>200r</top>
<height>200</height>
<color>ffffffff</color>
</control>

<control type="button" id="800">
<onclick>RunScript(/../run.py)</onclick>
<onup>700</onup>
<width>462</width>
<left>0</left>
<height>100</height>
<top>100r</top>
<font>font12</font>
<label>Run</label>
<color>ffffffff</color>
</control>

Contents of run.py is:
run.py:

import xbmcgui
xbmcgui.Window(10000).getControl(799).setLabel('12345')

Viewing all articles
Browse latest Browse all 1803

Trending Articles