From ad4168c7352a1bae9c84e1678b40ed337cb1d9b8 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 6 Dec 2005 19:17:00 +0000 Subject: [PATCH 1/1] use PixmapConditional for yellow and blue buttons --- lib/python/Screens/InfoBarGenerics.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index cd9719bd..dc597d22 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -548,15 +548,17 @@ class InfoBarAdditionalInfo: self["ButtonRed"] = Pixmap() self["ButtonRedText"] = Label(_("Record")) + self["ButtonGreen"] = PixmapConditional() self["ButtonGreen"].setConnect(lambda: self.session.nav.getCurrentService().subServices().getNumberOfSubservices() > 0) -# self["ButtonGreenText"] = Label(text = _("Subservices")) self["ButtonGreenText"] = LabelConditional(text = _("Subservices"), withTimer = True) self["ButtonGreenText"].setConnect(lambda: self.session.nav.getCurrentService().subServices().getNumberOfSubservices() > 0) -# self["ButtonGreenText"].hide() -# self["ButtonGreen"].hidePixmap() -# self["ButtonYellow"] = Pixmap() -# self["ButtonBlue"] = Pixmap() + + self["ButtonYellow"] = PixmapConditional() + self["ButtonYellow"].setConnect(lambda: False) + + self["ButtonBlue"] = PixmapConditional() + self["ButtonBlue"].setConnect(lambda: False) class InfoBarNotifications: def __init__(self): -- 2.30.2