aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TextBox.py
diff options
context:
space:
mode:
authorstefan <stefan@localhost>2008-12-16 10:33:19 +0000
committerStefan <stefan@tuxboxls.(none)>2008-12-16 19:55:34 +0100
commitf95be11f0517eac56013b0ccb14825be97fc1540 (patch)
treeea83dc37edaa0300c3ae2959ad7387033ad85851 /lib/python/Screens/TextBox.py
parent1d07f28ae2ebe4fd075f24f601cd37770435eb52 (diff)
downloadenigma2-f95be11f0517eac56013b0ccb14825be97fc1540.tar.gz
enigma2-f95be11f0517eac56013b0ccb14825be97fc1540.zip
finish and polish diseqc tester plugin
Diffstat (limited to 'lib/python/Screens/TextBox.py')
-rw-r--r--lib/python/Screens/TextBox.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/python/Screens/TextBox.py b/lib/python/Screens/TextBox.py
new file mode 100644
index 00000000..117c5c72
--- /dev/null
+++ b/lib/python/Screens/TextBox.py
@@ -0,0 +1,26 @@
+from Screens.Screen import Screen
+
+from Components.ActionMap import ActionMap
+from Components.Sources.StaticText import StaticText
+from Components.ScrollLabel import ScrollLabel
+
+class TextBox(Screen):
+ def __init__(self, session, text = ""):
+ Screen.__init__(self, session)
+
+ self.text = text
+ self["text"] = ScrollLabel(self.text)
+
+ self["actions"] = ActionMap(["OkCancelActions", "DirectionActions"],
+ {
+ "cancel": self.cancel,
+ "ok": self.ok,
+ "up": self["text"].pageUp,
+ "down": self["text"].pageDown,
+ }, -1)
+
+ def ok(self):
+ self.close()
+
+ def cancel(self):
+ self.close() \ No newline at end of file