enable="eq(control_count_from_here,value_that_control_should_be)"
eg
enable="eq(-2,2)"
means if the control two positions before this one is equal to 2, enable it
you can also use the ! for not
and gt() for greater than and lt() for less than
hopefully we can better document these in the wiki. i'm not very good at writing.
and you can group commands, i believe only + for and, | for or. i don't think you can mix + and |
HOW-TO write GUI settings for XBMC python plugins and scripts (addons)
Nuka1195
Skilled Python Coder Posts: 3,914 Joined: Dec 2004 Reputation: 17 |
2009-01-06 00:40
Post: #21
|
| find quote |
BigBellyBilly
Skilled Python Coder Posts: 959 Joined: Feb 2005 Reputation: 2 Location: UK |
2009-02-11 15:35
Post: #22
Is there a way of exec a script and/or xbmc function from a setting option ?
ie. option 'View Readme' can launch a script function named viewReadme() This would allow the of one/same settings dialog instead of having a MainMenu (of actions) which would also have a 'Settings Menu' option. suggested format: Quote:<setting id="readme" type="exec" source="viewReadme" label="30000" /> BBB My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,914 Joined: Dec 2004 Reputation: 17 |
2009-02-11 17:27
Post: #23
yes type="action"
|
| find quote |
BigBellyBilly
Skilled Python Coder Posts: 959 Joined: Feb 2005 Reputation: 2 Location: UK |
2009-02-11 17:33
Post: #24
Thanks.
got an example for me ? or could you point me to the doc for this plugin settings use. Its not in the plugin.html and struggling to find it in the wiki ? My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,914 Joined: Dec 2004 Reputation: 17 |
2009-02-11 18:36
Post: #25
this log message was in the main trunk, so if someone is adding plugin settings doc to xbmcplugin.cpp, you will have to go thru that repo too. i usually added an example.
Quote: |
| find quote |
Temhil
Skilled Python Coder Joined: Apr 2008 Reputation: 1 Location: Canada |
2009-04-01 04:12
Post: #26
I just discover settings.xml in plugins (I know I am more a script guy and so still a newbie with plugins), and would like to say good job, it is very nice and useful to have this feature.
I was wondering is there (or will be) something similar for scripts? Thanks! ![]() _____________________________ Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only) ![]() |
| find quote |
BigBellyBilly
Skilled Python Coder Posts: 959 Joined: Feb 2005 Reputation: 2 Location: UK |
2009-04-01 10:46
Post: #27
Has been discussed already http://forum.xbmc.org/showthread.php?tid=45394
Currently on Nuka's TODO list when he has time. My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net |
| find quote |
Temhil
Skilled Python Coder Joined: Apr 2008 Reputation: 1 Location: Canada |
2009-04-01 14:14
Post: #28
BigBellyBilly Wrote:Has been discussed already http://forum.xbmc.org/showthread.php?tid=45394Thanks for the update BigBellyBilly. ![]() _____________________________ Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only) ![]() |
| find quote |
digitaldesaster
Junior Member Posts: 32 Joined: Aug 2009 Reputation: 0 |
2009-08-30 11:03
Post: #29
Hi,
nice function. its working in the menu.. so i am able to edit and save my settings. I tried to use it for my own script.. the only problem: i can't access the setting from my script. my settings.xml under scripts/myscript/resources PHP Code: <settings>settings.xml after edit under userdata/script_data/myscript/ PHP Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>my imports... import xbmc, xbmcgui,xbmcplugin,sys xbmcplugin.openSettings(sys.argv[0]) language = xbmcplugin.getSetting('language') choose = xbmcplugin.getSetting('choose') resmax = xbmcplugin.getSetting('resmax') resmin = xbmcplugin.getSetting('resmin') XBMC.log = No settings.xml file could be found! Whats wrong, please help! thanks dd |
| find quote |
digitaldesaster
Junior Member Posts: 32 Joined: Aug 2009 Reputation: 0 |
2009-08-30 17:39
Post: #30
tested it with a plugin version of my script and it works.. so it doesn't work genreally for scripts??
|
| find quote |

![[Image: passionxbmc_signature.png]](http://jahnrik.free.fr/passionxbmc_signature.png)
![[Image: project_thin_badge.gif]](http://www.ohloh.net/p/passion-xbmc/widgets/project_thin_badge.gif)
Search
Help