aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
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
parent1d07f28ae2ebe4fd075f24f601cd37770435eb52 (diff)
downloadenigma2-f95be11f0517eac56013b0ccb14825be97fc1540.tar.gz
enigma2-f95be11f0517eac56013b0ccb14825be97fc1540.zip
finish and polish diseqc tester plugin
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--[-rwxr-xr-x]lib/python/Screens/Makefile.am3
-rw-r--r--lib/python/Screens/TextBox.py26
2 files changed, 28 insertions, 1 deletions
diff --git a/lib/python/Screens/Makefile.am b/lib/python/Screens/Makefile.am
index a3cf70bb..cde2d6c3 100755..100644
--- a/lib/python/Screens/Makefile.am
+++ b/lib/python/Screens/Makefile.am
@@ -13,5 +13,6 @@ install_PYTHON = \
TimerSelection.py PictureInPicture.py TimeDateInput.py \
SubtitleDisplay.py SubservicesQuickzap.py ParentalControlSetup.py NumericalTextInputHelpDialog.py \
SleepTimerEdit.py Ipkg.py RdsDisplay.py Globals.py DefaultWizard.py \
- SessionGlobals.py LocationBox.py WizardLanguage.py TaskView.py Rc.py VirtualKeyBoard.py
+ SessionGlobals.py LocationBox.py WizardLanguage.py TaskView.py Rc.py VirtualKeyBoard.py \
+ TextBox.py
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