Can you inherit a Plugin window and listen for events? - 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: Can you inherit a Plugin window and listen for events? (/showthread.php?tid=201760) |
Can you inherit a Plugin window and listen for events? - tria - 2014-08-09 Can I create a directory listing in a Plugin (not script) add-on, and then inherit that active window id using xbmcgui.Window? If so, can I also hook to events such as onFocus? I know I am in crossing to the hacky side if I do that, but it is the only way to keep the addon simple, and most importantly to be consistent with the current skin. In case you need to know why, I need to get notified whenever a list item get focus. It can, however, be used for many other things beyond that. |