From 285290ffcdf531d2481b199541a402560b1e129d Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sat, 12 Nov 2005 18:09:21 +0000 Subject: [PATCH] use new ScrollLabel in EPG EventViewer --- data/keymap.xml | 4 ++-- data/skin.xml | 3 +-- lib/python/Screens/EventView.py | 25 ++++++++++--------------- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/data/keymap.xml b/data/keymap.xml index fa252fcc..96f0276f 100644 --- a/data/keymap.xml +++ b/data/keymap.xml @@ -105,8 +105,8 @@ - - + + diff --git a/data/skin.xml b/data/skin.xml index 0d3c3347..ef5bbd1d 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -161,11 +161,10 @@ - + - diff --git a/lib/python/Screens/EventView.py b/lib/python/Screens/EventView.py index 48d85bf7..6dfb3894 100644 --- a/lib/python/Screens/EventView.py +++ b/lib/python/Screens/EventView.py @@ -1,28 +1,23 @@ from Screen import Screen from Components.ActionMap import ActionMap from Components.Label import Label -from Components.ProgressBar import ProgressBar +from Components.ScrollLabel import ScrollLabel from enigma import eWidget, eServiceEventPtr, eLabel class EventView(Screen): - def __init__(self, session, Event, callback): + def __init__(self, session, Event, callback=None): Screen.__init__(self, session) - self.cbFunc = callback - print self.cbFunc - - self["epg_description"] = Label() + self["epg_description"] = ScrollLabel() self["datetime"] = Label() self["channel"] = Label() - self["scrollbar"] = ProgressBar() self["duration"] = Label() - self["actions"] = ActionMap(["OkCancelActions", "EventViewActions"], { "cancel": self.close, "ok": self.close, - "scrollUp": self.scrollUp, - "scrollDown": self.scrollDown, + "pageUp": self.pageUp, + "pageDown": self.pageDown, "prevEvent": self.prevEvent, "nextEvent": self.nextEvent }) @@ -46,8 +41,8 @@ class EventView(Screen): self["channel"].setText("Unknown Service") self["duration"].setText("%d min"%(event.getDuration()/60)) - def scrollUp(self): - print "scrollUp" - - def scrollDown(self): - print "scrollDown" + def pageUp(self): + self["epg_description"].pageUp() + + def pageDown(self): + self["epg_description"].pageDown() -- 2.30.2