aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Standby.py
blob: a2c3ded4b33d0858da4346e6ef5ffd63c2fac8d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from Screen import Screen
from Components.ActionMap import ActionMap

class Standby(Screen):
	def Power(self):
		print "leave standby"
		#start last played service
		self.infobar.servicelist.zap()
		self.close()

	def __init__(self, session, infobar):
		Screen.__init__(self, session)
		self.infobar = infobar
		print "enter standby"

		self["actions"] = ActionMap( [ "StandbyActions" ],
		{
			"power": self.Power
		})

		self.session.nav.stopService()
		#stop/pause? playing services
		#switch off avs