HOW-TO write GUI settings for XBMC python plugins and scripts (addons)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Spaggi Offline
Senior Member
Posts: 179
Joined: May 2010
Reputation: 0
Post: #41
I can't use the settings type "Files". If I use it like this:

Quote: <setting id="Files01" type="files" label="30012" default="" />

It won't show up in the settings menu...what am I doing wrong?
(This post was last modified: 2010-07-25 19:53 by Spaggi.)
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,938
Joined: Dec 2004
Reputation: 17
Post: #42
type="file"

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Spaggi Offline
Senior Member
Posts: 179
Joined: May 2010
Reputation: 0
Post: #43
Works, thanks alot!

Another issue: When I use fileenum, I cannot find .m3u playlist files. Txt files work well.
find quote
solexalex Offline
Skilled Python Coder
Posts: 706
Joined: Jul 2004
Reputation: 6
Post: #44
Hello !
three questions :

1 - Any new infos where we can get help on all available settings, how they works, what are the options and their possible values... ?


2 - It looks like bool setting can't get the option 'visible' ... Why ?

3 - I used the setting type 'action' but the default value, which is the command line (RunPlugin(....) ) is showing next to the label. Any way to hide it ?

(I'm using XBMC 9.11 r26017)
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,938
Joined: Dec 2004
Reputation: 17
Post: #45
1. in guidialogaddonsettings.cpp (i think)
2. it should, maybe a bug
3. put the action in action="RunScript()" leave default blank. default=""

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
solexalex Offline
Skilled Python Coder
Posts: 706
Joined: Jul 2004
Reputation: 6
Post: #46
thanks
I'll try these later and keep in touch
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 3
Post: #47
Is it possible to add more pages to the settings window?

With a lot of settings the "general" view is quickly becoming cluttered, so it would be nice to add an "advanced" view.
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,938
Joined: Dec 2004
Reputation: 17
Post: #48
http://trac.xbmc.org/attachment/ticket/9...tings4.zip

has an example script that has categories in settings.xml

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 617
Joined: Apr 2008
Reputation: 3
Post: #49
Thank you
find quote
teshephe Offline
Senior Member
Posts: 107
Joined: Dec 2009
Reputation: 0
Post: #50
Big Grin Good stuff..

My question is that I have some items that the string can be quite long so how do I make it so when you edit a item that is too long, that it scrolls or the text in the edit box moves to the left as I cursor to the right to see what I am editing in the user interface?


Thanks!

Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
(This post was last modified: 2010-09-01 14:56 by teshephe.)
find quote
Post Reply