git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enabled timeredit to show bug
[enigma2.git]
/
lib
/
python
/
Screens
/
TimerEdit.py
diff --git
a/lib/python/Screens/TimerEdit.py
b/lib/python/Screens/TimerEdit.py
index 2fe389eee387849ed990936d19bae5ccac48fa05..f8c9f20797c5df37132841347368a3ac955e4c55 100644
(file)
--- a/
lib/python/Screens/TimerEdit.py
+++ b/
lib/python/Screens/TimerEdit.py
@@
-4,6
+4,7
@@
from Components.ActionMap import ActionMap
from Components.TimeInput import TimeInput
from Components.Label import Label
from Components.Button import Button
from Components.TimeInput import TimeInput
from Components.Label import Label
from Components.Button import Button
+from Components.TextInput import TextInput
class TimerEdit(Screen):
def __init__(self, session, entry):
class TimerEdit(Screen):
def __init__(self, session, entry):
@@
-18,7
+19,8
@@
class TimerEdit(Screen):
self["shortcuts"] = ActionMap(["ShortcutActions"],
{
"red": self.beginFocus,
self["shortcuts"] = ActionMap(["ShortcutActions"],
{
"red": self.beginFocus,
- "yellow": self.endFocus
+ "yellow": self.endFocus,
+ "green": self.descFocus
})
self.entry = entry
})
self.entry = entry
@@
-29,10
+31,11
@@
class TimerEdit(Screen):
self["lbegin"] = Label("Begin")
self["lend"] = Label("End")
self["lbegin"] = Label("Begin")
self["lend"] = Label("End")
- self["description"] = Label("bla")
-# TextInput()
+ self["description"] = TextInput()
self["apply"] = Button("Apply")
self["service"] = Button()
self["apply"] = Button("Apply")
self["service"] = Button()
+
+ self["description"].setText(entry.description);
def beginFocus(self):
self.setFocus(self["begin"])
def beginFocus(self):
self.setFocus(self["begin"])
@@
-40,6
+43,9
@@
class TimerEdit(Screen):
def endFocus(self):
self.setFocus(self["end"])
def endFocus(self):
self.setFocus(self["end"])
+ def descFocus(self):
+ self.setFocus(self["description"])
+
def apply(self):
print "applied!"
def apply(self):
print "applied!"
@@
-63,4
+69,4
@@
class TimerEditList(Screen):
})
def openEdit(self):
})
def openEdit(self):
- self.session.open(TimerEdit, self["timerlist"].getCurrent())
+ self.session.open(TimerEdit, self["timerlist"].getCurrent()
[0]
)