aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-17 00:54:02 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-17 00:54:02 +0000
commita29d455a1f7860faa7ca1f36586bfc6f6f3337c5 (patch)
tree07403532cc79b9743a165181a37aa3cde903717e /lib/python
parentf486b6a710f23e85fe79309151c9d32038690872 (diff)
downloadenigma2-a29d455a1f7860faa7ca1f36586bfc6f6f3337c5.tar.gz
enigma2-a29d455a1f7860faa7ca1f36586bfc6f6f3337c5.zip
add save
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Setup.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py
index be10ba61..9f65daaa 100644
--- a/lib/python/Screens/Setup.py
+++ b/lib/python/Screens/Setup.py
@@ -50,7 +50,13 @@ class Setup(Screen):
self["config"].handleKey(1)
def keyRight(self):
self["config"].handleKey(2)
-
+
+ def keySave(self):
+ print "save requested"
+ for x in self["config"]:
+ selection = self["config"].getCurrent()
+ selection.save()
+
def __init__(self, session, setup):
Screen.__init__(self, session)
@@ -78,5 +84,6 @@ class Setup(Screen):
"cancel": self.close,
"ok": self.keyOk,
"left": self.keyLeft,
- "right": self.keyRight
+ "right": self.keyRight,
+ "save": self.keySave
})