Code:
<setting id="refresh_queue" type="enum" label="30019" values="2|5|10|15|30" default="3"/>
kricker
Team-XBMC QA Specialist Posts: 3,307 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2010-07-07 21:43
Post: #1
If I have the setting:
Code: <setting id="refresh_queue" type="enum" label="30019" values="2|5|10|15|30" default="3"/> |
| find quote |
giftie
Skilled Python Coder Posts: 2,042 Joined: Mar 2010 Reputation: 35 |
2010-07-08 02:20
Post: #2
How about using a list in python:
a = [2, 5, 10, 15, 30] <-inside your python program. then testing from you setting value: a[setting] to get the setting your wanted setting. |
| find quote |
kricker
Team-XBMC QA Specialist Posts: 3,307 Joined: Apr 2004 Reputation: 16 Location: Knoxville, TN |
2010-07-08 04:56
Post: #3
Thanks, but I got the answer I was hoping for from Amet. Use labelenum instead of just enum. Then I can store the actual values instead of the iteration of enum.
|
| find quote |