modifications for edit mode ( is working now )
[enigma2.git] / lib / python / Screens / ServiceScan.py
1 from Screen import Screen
2 from Components.ServiceScan import ServiceScan as CScan
3 from Components.ProgressBar import ProgressBar
4 from Components.Label import Label
5 from Components.ActionMap import ActionMap
6
7 class ServiceScan(Screen):
8         def ok(self):
9                 print "ok"
10                 if self["scan"].isDone():
11                         self.close()
12         
13         def cancel(self):
14                 self.close()
15         
16         def __init__(self, session):
17                 Screen.__init__(self, session)
18                 
19                 self["scan_progress"] = ProgressBar()
20                 self["scan_state"] = Label("scan state")
21                 self["scan"] = CScan(self["scan_progress"], self["scan_state"])
22
23                 self["actions"] = ActionMap(["OkCancelActions"], 
24                         {
25                                 "ok": self.ok,
26                                 "cancel": self.cancel
27                         })