aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/MessageBox.py
blob: bb6318bed25d4c8334d74447f87daf4d2b8aaeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from Screen import Screen
from Components.ActionMap import ActionMap
from Components.Label import Label

class MessageBox(Screen):
	def __init__(self, session, text):
		Screen.__init__(self, session)
		
		self["text"] = Label(text)

		self["actions"] = ActionMap(["OkCancelActions"], 
			{
				"cancel": self.close
			})