@digitaldesaster
The first post says it pretty clearly, this is for plugins, not scripts.
HOW-TO write GUI settings for XBMC python plugins and scripts (addons)
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-08-31 10:43
Post: #31
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
digitaldesaster
Junior Member Posts: 32 Joined: Aug 2009 Reputation: 0 |
2009-08-31 10:49
Post: #32
In Germany whe say: "Wer lesen kann ist klar im Vorteil". sorry..
cya dd |
| find quote |
f3ar007
Member Posts: 57 Joined: Apr 2009 Reputation: 0 |
2009-11-14 06:56
Post: #33
Hi, I'm trying to use the "enum" plugin setting; however, it reads the place in "enum" line, for instance:
The settings.xml: Code: <settings>The python code: Code: archiveMonth = xbmcplugin.getSetting('archiveMonth')If 11-13-2009 is selected, the returned value *should* be /11-13-2009/; instead, it returns /10-12-0/ or very similar. **The number in line, beginning at zero. Is there a way to get the actual value from the "enum" setting, instead of its ordinal value? |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2009-11-14 07:17
Post: #34
I believe that's what the enum does - it returns the index rather than the value. If you want the value you should know it anyway, right (after all, you supplied the values). For consecutive numbers with a min and a max you can probably do it without the enum at all, right? The enum stuff is designed for non-consecutive numbers.
Cheers, Jonathan Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
f3ar007
Member Posts: 57 Joined: Apr 2009 Reputation: 0 |
2009-11-14 07:21
Post: #35
Well, I am trying to create a sort of calendar like select. (Should be obvious by the example.
) Although, I'm not sure how I could accomplish this without the "enum" option. Is there a better way?This is a feature request for one of my plugins. The users mentioned entering dates was a long process, this will hopefully speed it up! ![]() ## Figured this one out... Just checked the length of the "enum" index and returned a zero in front of single digits or nothing in front of double digits. Checked the year against a string.
(This post was last modified: 2009-11-14 12:04 by f3ar007.)
|
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,914 Joined: Dec 2004 Reputation: 17 |
2009-12-01 16:18
Post: #36
<setting id="archiveDay" type="labelenum"
|
| find quote |
VictorV
Senior Member Posts: 123 Joined: May 2009 Reputation: 0 Location: Norway |
2009-12-18 18:32
Post: #37
Would it be possible to create a slider option? With min, max and step size?
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2009-12-18 18:39
Post: #38
possible, yes, available, no.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,914 Joined: Dec 2004 Reputation: 17 |
2009-12-18 19:14
Post: #39
i already submitted a ticket for this along time ago. among others.
spiff or anybody check out that settings cleanup ticket. a comment would have been nice. |
| find quote |
D0nR0s4
Senior Member Joined: Nov 2009 Reputation: 0 Location: Germany |
2009-12-27 05:36
Post: #40
Hi, just saw the possibility for the settings.xml and it works like a charm. Only thing that I would like/need for my script, is the possibility to select a hard or cd/dvd drive.
I mainly need the letter(on Windows) of the dvd drive from which I get the state with "getDVDState". I didn't find anything about this so I thought I could use a settings entry but I found no chance to select the dvd drive with the folder or file setting types. I hope someone can help me, Greetings, D0nR0sa Edit: Sorry, problem was an error in xbmc that prevented me from accessing the dvd drive
(This post was last modified: 2009-12-27 06:49 by D0nR0s4.)
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
) Although, I'm not sure how I could accomplish this without the "enum" option. Is there a better way?

Search
Help