v16 Error Contents: Unknown control type for python
#1
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
Reply
#2
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
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Awesome, thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Error Contents: Unknown control type for python0