HOW-TO write GUI settings for XBMC python plugins and scripts (addons) - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: HOW-TO write GUI settings for XBMC python plugins and scripts (addons) (/showthread.php?tid=29577)
- amet - 2010-09-10 12:15
chippyash Wrote:Only the error that I am showing you in the debug (cpluff error). The dialog simply doesn't display as I expect when I click on Addon Settings from the context menu.
this is what I see:
chippyash Wrote:Also, can you point me to the up to date documentation for settings, I'd like to include it in the new documentation I'm writing - I think JM cc'd you in on the issue trac ticket
what you see in this thread is all we have in terms of documentation for settings. looking at few Addons settings would cover all the settings that we have.
btw, good work on the documentation so far
- chippyash - 2010-09-10 14:33
Amet Wrote:this is what I see:
ah ha - now I see where you are at. Yes I can get to it via that route - System - Addons - Enabled Addons.
Also I can select Music - Music Addons - select Gpodder (but don't click on it), press C (context menu) and select Addon Settings. That works too
But if I click on Gpodder to display its listing and then try to get to Addon Settings via the context menu, nothing appears.
If I do the same with another addon - say the Giant Bomb video addon I can get to the addons settings.
Do I need to do something else?
Thanks for your kind words btw, I hope doc will be useful to others when it is finished.
- amet - 2010-09-10 14:41
chippyash Wrote:ah ha - now I see where you are at. Yes I can get to it via that route - System - Addons - Enabled Addons.
there must be an error in the code, check your PM
- teshephe - 2010-09-12 02:04
how do you setSettings for a bool type?
I keep getting a script error telling me "object is not callable"
- ppic - 2010-09-12 02:13
- teshephe - 2010-09-12 02:58
ppic Wrote:settings.setSetting(id="foo", value=True)
Thanks PICC! Still needed the quotes "True" though.
- ppic - 2010-09-12 03:02
2 "P, 1 "c" is a better way to write my nickname
good it worked!
- teshephe - 2010-09-12 03:20
ppic Wrote:2 "P, 1 "c" is a better way to write my nickname
LOL!!! Sorry about that! and yes, that fixed it. Thanks
- teshephe - 2010-09-12 23:18
Anyway to have get a value from whatever is put into another setting?
- teshephe - 2010-09-17 05:17
- chippyash - 2010-09-17 08:47
Quote:I know this is probably not the right thread
Correct! You are tail gating another thread on a different subject, just like you did with your original post! Problem is, people read the titles in the thread list, so will probably never find your question. Thread followers just ignore you (except me of course). Once you've exhausted forum search, I suggest you start your own thread with a new question.
- teshephe - 2010-09-21 18:32
I have a script that is called via the autoexec.py, my question is how do I get the settings from another addon?
- ppic - 2010-09-21 18:55
uuid is the path to the script directory, so try to pass the path of the plugin/script you want.
- teshephe - 2010-09-21 22:30
Thanks 2 P 1 c!!!!
I finally figured it out after much Trial and error... working like a champ. I am still wrestling with 2 items though...
Trying to pull the info for the web server port into my addon settings (default is 8080) i know but some people usually change it so I need to pull that info from XBMC along with the list of availabe sound devices. Would you happen to know off hand what they are?
I know to get the local IP is xbmc.getIPAddress()..
- ppic - 2010-09-21 23:39
why do you need it ?