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:
Contents of run.py is:
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')