Kodi Community Forum

Full Version: Error Contents: Unknown control type for python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was not able to find anything about this searching, and not sure if it is a bug, but when using image control types, I always get the error Error Contents: Unknown control type for python when using self.getControl(controlID) when the following two options exist in the image control. If i remove them everything works fine. The image control works fine via xml too with the options in, It is only when trying to access the control via script. Also the tags can be present as long as there is no value in them.

Any thoughts?

GOOD:
PHP Code:
<bordertexture border="2"></bordertexture>
<
bordersize></bordersize

BAD:
PHP Code:
<bordertexture border="2">myborder.png</bordertexture>
<
bordersize>2</bordersize

EXAMPLE:
PHP Code:
<control type="image" id="210">
    <
animation delay="200" effect="fade" start="0" end="100">Visible</animation>
    <
description>myinfo</description>
    <
width>540</width>
    <
height>280</height>
    <
texture background="true"></texture>
    <
aspectratio align="center" aligny="center">scale</aspectratio>
    <
bordertexture border="2">myborder.png</bordertexture>
    <
bordersize>2</bordersize>
</
control
yup, kodi jarvis v16 doesn't support bordered images in python.
it's fixed in kodi krypton v17: https://github.com/xbmc/xbmc/pull/9892
Awesome, thanks