git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add save
[enigma2.git]
/
lib
/
python
/
Screens
/
Setup.py
diff --git
a/lib/python/Screens/Setup.py
b/lib/python/Screens/Setup.py
index be10ba6168960f04d371bb8555fa80ebf651ccdf..9f65daaa654f5171601e37355971654af5f7133e 100644
(file)
--- 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)
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)
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,
"cancel": self.close,
"ok": self.keyOk,
"left": self.keyLeft,
- "right": self.keyRight
+ "right": self.keyRight,
+ "save": self.keySave
})
})