Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84015

WindowXMLDialog with plugin.video/program

$
0
0
Is it possible to use WindowXMLDialog with addons of type "plugin.video" and "plugin.program"? or is it just for "script" addons?
If it can be done, can you give a brief example of the file structure and initialization?

What I did is create an xml file containing a dialog "<window type="dialog" ...>", and saved it under
"PLUGIN/resources/skins/default/720p"
I also tried different paths (every possible way I could think of).
Then I initialized it with
Code:
WindowXMLDialog("dialog.xml", os.getcwd())
I also tried
Code:
WindowXMLDialog("dialog.xml", __addon__.getAddonInfo("path"))
without any luck (I did show it after init). I also tried to supply 3rd and 4th arguments (e.g. "default", "720p")
The exception I am getting is:
Code:
RuntimeError: XML File for Window is missing

Can anyone help me with this.

Viewing all articles
Browse latest Browse all 84015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>