Click event
#1
Hello all,

I'm developing a service addon that shows a button on top of playing video and cannot find a way to get the click event.
Quote:window = xbmcgui.Window(xbmcgui.getCurrentWindowId())
radio = xbmcgui.ControlRadioButton(200, 200, 150, 150, '', 
            focusOnTexture=os.path.join(self.__resources__, 'on.png'), 
            noFocusOnTexture=os.path.join(self.__resources__, 'on_nofocus.png'), 
            focusOffTexture=os.path.join(self.__resources__, 'off.png'),
            noFocusOffTexture=os.path.join(self.__resources__, 'off_nofocus.png'), 
)
window.addControl(radio)
In the log I can see it:

# CLibInputPointer:TonguerocessButton - event.type: 5, event.button.button: 1, event.button.x: 268, event.button.y: 281

Is there a way to catch the event within the python code?
Reply
#2
Cannot edit the post...
I need the Control to be shown on playing video
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Click event00