Popup dialog that renders a custom settings file
#1
I would like to provide users of my plugin the ability to popup a dialog box and capture some very basic simple information that are stored in 3 x select dropdown or select lists.

For example, when a user clicks on the "filter" menu item, a pop-up opens with the following:

Genre
  • Genre Option 1
  • Genre Option 2
  • Genre Option 3
Dialogue Language
  • Language 1
  • Language 2
  • Language 3
Is it possible at all to create a XBMC window that renders a custom settings.xml file - which allows me to very easily specify the form fields, types and their values?

I understand it is possible for me to instantiate a WindowXMLDialog object and pass it a custom window.xml file. However, the XML schema for the window.xml file requires me to write a lot of verbose code to lay out my form which I would like to avoid.

Ideas or reference to the source of a video.plugin that already does that would be greatly appreciated.
Reply
#2
The easiest way is to use xbmcgui.Dialog.select() > http://mirrors.xbmc.org/docs/python-docs...tml#Dialog

Of course you would have to do a dialog for each option. You may want to take a look at PyXBMCt > http://forum.xbmc.org/showthread.php?tid=174859
Reply
#3
(2013-11-18, 15:21)divingmule Wrote: The easiest way is to use xbmcgui.Dialog.select() > http://mirrors.xbmc.org/docs/python-docs...tml#Dialog

Of course you would have to do a dialog for each option. You may want to take a look at PyXBMCt > http://forum.xbmc.org/showthread.php?tid=174859

Yup... but like you pointed out, I wouldn't be able to stack three selects in one dialog which is what I am after.

I am currently thinking of extracting the Dialog class in the XBMC core that renders the settings.xml file. That is pretty much what I am after - and I am sure many other people on the forums as well. There is a need to be able to render forms in XBMC that follow the default skin theme.
Reply

Logout Mark Read Team Forum Stats Members Help
Popup dialog that renders a custom settings file0