aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
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
})