-from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigNumber, ConfigSet, ConfigNothing
+from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigNumber, ConfigSet
from enigma import Misc_Options, setTunerTypePriorityOrder;
from SystemInfo import SystemInfo
import os
def updateChoices(sel, choices):
if choices:
- defval = None
- val = int(sel.value)
+ defval = None
+ val = int(sel.value)
if not val in choices:
- tmp = choices+[]
- tmp.reverse()
- for x in tmp:
- if x < val:
- defval = str(x)
- break
+ tmp = choices+[]
+ tmp.reverse()
+ for x in tmp:
+ if x < val:
+ defval = str(x)
+ break
sel.setChoices(map(str, choices), defval)
-