How to navigate the timeline buttons? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: How to navigate the timeline buttons? (/showthread.php?tid=205415) |
How to navigate the timeline buttons? - Pr0ph3cyTiger - 2014-09-29 Hi guys, I need your help, I've modified the tv guide addon (http://wiki.xbmc.org/index.php?title=Add-on:TV_Guide) I have added the list of buttons for the channels and programs in the tv guide. I have one yellow image in the channel button and one yellow image in the program button. I want to know how I can navigate the timeline with up/down/left/right buttons in the tv guide?? Here is the screenshot: Here is the code: Code: #get actioncodes from keyboard.xml Do you know how?? If you need to take a look on my full code, here it is: https://github.com/Pr0ph3cyTiger/script.tvguide/ RE: How to navigate the timeline buttons? - Pr0ph3cyTiger - 2014-10-02 does anyone know how I can navigate the timeline with up/down/left/right buttons in the tv guide? RE: How to navigate the timeline buttons? - removed151214 - 2014-10-02 I'm can't think of a good way to do this. (Which isn't to say others can't - just that any way to do it well is beyond my knowledge). From what I can see from the Python docs, there's no way to set the ID of controls you add. If there was, then you'd give each control an ID, then set the buttons controlLeft, controlRight, controlUp and controlDown properties to move between the buttons - so you'd give the first button an id of 1000, controlRight would be 1001, controlDown 2001 and so on (though even if this were possible, it'd take some great Python skills with different button widths to work out which buttons were above and below each button, so the navigation moved to the correct button when going up and down.) Assuming there isn't a hidden setID method, you could possibly do this by providing a skin .xml file with a number of grouplist controls, with their up and down set to move between each other. By adding buttons to them, they would then take care of moving left and right between buttons in a single row. But that's not something I've ever tried, so may not be possible itself. RE: How to navigate the timeline buttons? - Pr0ph3cyTiger - 2014-10-02 Thank you for your advice, I'm going to use the grouplist controls. Do you know how easy to code the grouplist controls to allow me to take the control of channels and programs? Do I need to remove the button code (that allow me to add the list of programs) to replace with the grouplist control? RE: How to navigate the timeline buttons? - removed151214 - 2014-10-02 Can't advise you any further (and I wouldn't even call it advice because, as I said, it's not something I've ever tried - it's just a suggestion ) |