setImageDimensions in control list
#1
I would like to resize the thumbnail size of the control list. But i was not able to do it using setImageDimensions method.

Here is my code.

self.list = xbmcgui.ControlList(200, 150, 300, 400)
self.addControl(self.list)
self.list.setImageDimensions(600, 390)


listItem = xbmcgui.ListItem("labelText")
listItem.setThumbnailImage("special://home/addons/xx/icon.png")
self.list.addItem(listItem)

How can I Increase the size of the image displays in the list?

Please help....
Reply
#2
There are _imageWidth and _imageHeight parameters for ControlList class constructor: http://romanvm.github.io/Kodistubs/_auto...ontrolList

According to my experience, it is enough to set only one parameter and the other will be adjusted accordingly by the image's aspect.
Reply

Logout Mark Read Team Forum Stats Members Help
setImageDimensions in control list0