add language selection to the start-wizard
[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, transponders, feid, flags):
17                 Screen.__init__(self, session)
18                 
19                 self.session.nav.stopService()
20                 
21                 self["scan_progress"] = ProgressBar()
22                 self["scan_state"] = Label(_("scan state"))
23                 self["scan"] = CScan(self["scan_progress"], self["scan_state"], transponders, feid, flags)
24
25                 self["actions"] = ActionMap(["OkCancelActions"], 
26                         {
27                                 "ok": self.ok,
28                                 "cancel": self.cancel
29                         })