1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.Label import Label
4 from Components.Harddisk import Harddisk
5 from Components.NimManager import nimmanager
6 from Components.MenuList import MenuList
7 from Components.About import about
9 from Tools.DreamboxHardware import getFPVersion
12 def __init__(self, session):
13 Screen.__init__(self, session)
15 self["text"] = Label("Enigma v" + about.getVersionString())
17 self["tuner"] = Label(_("Detected NIMs:"))
19 fp_version = getFPVersion()
20 if fp_version is None:
23 fp_version = _("Frontprocessor version: %d") % fp_version
25 self["fpVersion"] = Label(fp_version)
27 nims = nimmanager.nimList()
28 for count in range(2):
29 print "count:", nimmanager.nimCount
30 if count < nimmanager.nimCount:
31 self["tuner" + str(count)] = Label(nims[count][0])
33 self["tuner" + str(count)] = Label("")
35 self["hdd"] = Label(_("Detected HDD:"))
38 self["hddA"] = Label(_("%s\n(%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free()))
40 self["hddA"] = Label(_("none"))
42 self["actions"] = ActionMap(["SetupActions"],