From 572caca1ba06dd8247724c9f5d6bcad515e2edf4 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 5 Dec 2005 19:24:42 +0000 Subject: add support for Linkage services ( Premiere Subservices ) TODO: show/hide green point depending on avail subservices --- lib/python/Components/Label.py | 5 +++++ lib/python/Components/ServiceName.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Label.py b/lib/python/Components/Label.py index 7402d722..c2d57743 100644 --- a/lib/python/Components/Label.py +++ b/lib/python/Components/Label.py @@ -22,3 +22,8 @@ class Label(HTMLComponent, GUIComponent, VariableText): s = self.instance.calculateSize() return (s.width(), s.height()) + def show(self): + self.instance.show() + + def hide(self): + self.instance.hide() diff --git a/lib/python/Components/ServiceName.py b/lib/python/Components/ServiceName.py index 2e794d67..a9c0930a 100644 --- a/lib/python/Components/ServiceName.py +++ b/lib/python/Components/ServiceName.py @@ -17,8 +17,9 @@ class ServiceName(PerServiceDisplay): if service is not None: info = service.info() if info is not None: - self.setText(info.getName()) - setLCD(info.getName()) + name = info.getName() + self.setText(name) + setLCD(name) def stopEvent(self): self.setText(""); -- cgit v1.2.3