Settings help - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Settings help (/showthread.php?tid=76810) |
Settings help - kricker - 2010-07-07 If I have the setting: Code: <setting id="refresh_queue" type="enum" label="30019" values="2|5|10|15|30" default="3"/> - giftie - 2010-07-08 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. - kricker - 2010-07-08 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. |