2021-04-07, 18:07
Custom textures for individual list items are not possible.
(2021-08-23, 21:00)Antibore Wrote: I'm writing an add-on for the Matrix version of Kodi. The 1.3.1+matrix.1 tag seems to have very restructured code and does not match to the documentation any more. My problem is that the Group class seems to have gone away.
(2021-08-25, 20:15)Roman_V_M Wrote:Ok, Thanks for the reply. This explains it: I was browsing the Github repo back and forth trying to figure out when the file containing ControlGroup had came and went. I went to sidetrack, because the latest tagged version is Matrix-compatible, but does not contain Groups and master on the other hand has Groups and afaik is not Matrix compatible :-D(2021-08-23, 21:00)Antibore Wrote: I'm writing an add-on for the Matrix version of Kodi. The 1.3.1+matrix.1 tag seems to have very restructured code and does not match to the documentation any more. My problem is that the Group class seems to have gone away.
Actually, it's the other way around. The version that is currently in the Kodi addon repo is the original one written by me. Later jcn509 completely reworked PyXBMCt internals and the current documentation is based on his changes. I just cannot bring myself to push in into the repo because I'm a bit afraid of such radical changes although everything seems to be working.
As for ControlGroup, it was never a part of the original PyXBMCt because I don't know how it works and if it works at all from Python API. jcn509 has added ControlGroup but, again, I don't know anything about it. And for advanced layouts you should use XML-based UI.
Quote: self.scrollbar = pyxbmct.Slider(orientation=1)
Quote: import xbmcgui
self.scrollbar = pyxbmct.Slider(orientation=xbmcgui.VERTICAL)
Quote: def __new__(cls, *args, **kwargs):Am I doing something wrong and, if not, is there a way to get proper orientation support in the plugin in the future?
textures = {'textureback': os.path.join(skin.images, 'Slider', 'osd_slider_bg.png'),
'texture': os.path.join(skin.images, 'Slider', 'osd_slider_nibNF.png'),
'texturefocus': os.path.join(skin.images, 'Slider', 'osd_slider_nib.png')}
_set_textures(textures, kwargs)
if xbmc.getInfoLabel('System.BuildVersion')[:2] >= '17':
kwargs['orientation'] = xbmcgui.VERTICAL
return super(Slider, cls).__new__(cls, -10, -10, 1, 1, *args, **kwargs)
(2021-10-27, 22:02)Roman_V_M Wrote: @mike45637
https://romanvm.github.io/Kodistubs/_aut...it.setType
to a function that rearranges list contents. Then you need to map those actions to specific keys. IIRC, they are mapped to U and D by default.python:ACTION_VSHIFT_DOWN = 228
ACTION_VSHIFT_UP = 227