diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-22 14:18:12 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-22 14:18:12 +0000 |
| commit | 14ae9c7897eaefad5caa0cecda762b0a8a9e9d72 (patch) | |
| tree | 43a235bb4579c402e584b52656a7cd920c0c8d14 /lib/python/Screens/ChannelSelection.py | |
| parent | 87625f1aa211991c803ecbb5980972238136ac57 (diff) | |
| download | enigma2-14ae9c7897eaefad5caa0cecda762b0a8a9e9d72.tar.gz enigma2-14ae9c7897eaefad5caa0cecda762b0a8a9e9d72.zip | |
add onShown eventlist for executing stuff after the screen is drawn
use SimpleChannelSelection to select a service in TimerEntry
Diffstat (limited to 'lib/python/Screens/ChannelSelection.py')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 37f594dc..d3921306 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -158,7 +158,7 @@ class ChannelSelection(Screen): self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions", "ContextMenuActions"], { - "cancel": self.close, + "cancel": self.doClose, "ok": self.channelSelected, "mark": self.doMark, "contextMenu": self.doContext, @@ -374,11 +374,19 @@ class ChannelSelection(Screen): refstr = "" config.tv.lastservice.value = refstr config.tv.lastservice.save() + + def doClose(self): + self.close() class SimpleChannelSelection(ChannelSelection): def __init__(self, session, title): ChannelSelection.__init__(self, session) self.title = title + self.onShown.append(self.onExecCallback) + + def onExecCallback(self): + print "onExecCallback" + self.session.currentDialog.instance.setTitle(self.title) def channelSelected(self): # just return selected service ref = self.servicelist.getCurrent() @@ -386,4 +394,7 @@ class SimpleChannelSelection(ChannelSelection): def doContext(self): # don't show context menu pass + + def doClose(self): + self.close(None)
\ No newline at end of file |
