Show Custom Dialog via Addon?
#1
Hello again, Kodi community. I've been working on an addon and realized that I need to display a custom dialog at certain points during a video. While the Kodi Wiki outlines how to add custom dialogs with skins, I haven't been able to find a way to include a custom window in an addon and make it visible through addon.py. Is this possible to accomplish in Kodi? Thank you so much in advance!

P.S. One guess I had was running "xbmc.executebuiltin('ActivateWindow(1101)')" in addon.py, with 1101 being the ID of the custom window included in the addon folder, but that doesn't seem to yield any result, whether in the log or in the GUI. Maybe the custom window needs to be in one of the resources subfolders?
Reply
#2
we have a basic tutorial in our wiki that might be helpful to you:
https://kodi.wiki/view/HOW-TO:Script_addon

that code is aimed at creating a custom window, but if you want it to be a dialog instead
you'll have to use the WindowDialogXML class instead of the WindowXML class.

also see our python documentation:
https://codedocs.xyz/xbmc/xbmc/group__py...__xml.html
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Ah, that's perfect! I had a feeling there was a tutorial somewhere, but I just couldn't find it. Thank you so much for the help!
Reply

Logout Mark Read Team Forum Stats Members Help
Show Custom Dialog via Addon?0