HarddiskSelection works now
[enigma2.git] / lib / python / Screens / HarddiskSetup.py
1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.Harddisk import harddiskmanager                 #global harddiskmanager
4 from Components.MenuList import MenuList
5
6 class HarddiskSelection(Screen):
7         def __init__(self, session):
8                 Screen.__init__(self, session)
9
10                 self["hddlist"] = MenuList(harddiskmanager.HDDList())
11                 
12                 self["actions"] = ActionMap(["OkCancelActions"],
13                 {
14                         "ok": self.okbuttonClick ,
15                         "cancel": self.close
16                 })
17
18         def okbuttonClick(self):
19                 print "ok"
20                 pass