2020-02-19, 18:40
Hi,
I have problem matching controlIds (clicked_control == self.go_down_control). How come in Kodi v19 I'm getting diffrent value of controlId?, in Kodi v18 everything is working fine.
Result
2020-02-19 17:36:05.555 T:15760 NOTICE: MTVGUIDE @ onClick clicked_control : <xbmcgui.ControlButton object at 0x0000024B41EEF480>
2020-02-19 17:36:05.555 T:15760 NOTICE: MTVGUIDE @ onClick self.go_down_control: <xbmcgui.ControlButton object at 0x0000024B3D9EB690>
I have problem matching controlIds (clicked_control == self.go_down_control). How come in Kodi v19 I'm getting diffrent value of controlId?, in Kodi v18 everything is working fine.
xml:<control type="button" id="9000">
<description>Navigate down</description>
<posx>910</posx>
<posy>905</posy>
<width>80</width>
<height>80</height>
<texturefocus colordiffuse="button_focus">buttons/down.png</texturefocus>
<texturenofocus>buttons/down.png</texturenofocus>
<onup>9001</onup>
<ondown>-</ondown>
<onleft>9002</onleft>
<onright>9002</onright>
</control>
python:NAV_DOWN_BUTTON = 9000
python:def onInit(self):
self.go_down_control = self.getControl(NAV_DOWN_BUTTON)
python:def onClick(self, controlId):
deb('onClick controlId: %s' % controlId )
clicked_control = self.getControl(controlId)
if clicked_control == self.go_down_control:
deb('SkinPicker godown control')
self.showNextSkin()
Result
2020-02-19 17:36:05.555 T:15760 NOTICE: MTVGUIDE @ onClick clicked_control : <xbmcgui.ControlButton object at 0x0000024B41EEF480>
2020-02-19 17:36:05.555 T:15760 NOTICE: MTVGUIDE @ onClick self.go_down_control: <xbmcgui.ControlButton object at 0x0000024B3D9EB690>