From: Felix Domke Date: Fri, 24 Feb 2006 14:29:31 +0000 (+0000) Subject: use new show/hide X-Git-Tag: 2.6.0~4014 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/523329f059798ade1a43f905187682671d7298f2 use new show/hide --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index d6e5e3c7..6fbf9ded 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -945,7 +945,7 @@ class InfoBarInstantRecord: }) self.recording = None self["BlinkingPoint"] = BlinkingPixmapConditional() - self.onLayoutFinish.append(self["BlinkingPoint"].hideWidget) + self["BlinkingPoint"].hide() self["BlinkingPoint"].setConnect(self.session.nav.RecordTimer.isRecording) def stopCurrentRecording(self): @@ -1076,11 +1076,11 @@ class InfoBarAdditionalInfo: self.session.nav.event.append(self.gotServiceEvent) # we like to get service events def hideSubServiceIndication(self): - self["ButtonGreen"].hideWidget() + self["ButtonGreen"].hide() self["ButtonGreenText"].hide() def showSubServiceIndication(self): - self["ButtonGreen"].showWidget() + self["ButtonGreen"].show() self["ButtonGreenText"].show() def checkFormat(self, service): @@ -1088,9 +1088,9 @@ class InfoBarAdditionalInfo: if info is not None: aspect = info.getInfo(iServiceInformation.sAspect) if aspect in [ 3, 4, 7, 8, 0xB, 0xC, 0xF, 0x10 ]: - self["FormatActive"].showWidget() + self["FormatActive"].show() else: - self["FormatActive"].hideWidget() + self["FormatActive"].hide() def checkSubservices(self, service): if service.subServices().getNumberOfSubservices() > 0: @@ -1111,17 +1111,17 @@ class InfoBarAdditionalInfo: dolby = True break if dolby: - self["DolbyActive"].showWidget() + self["DolbyActive"].show() else: - self["DolbyActive"].hideWidget() + self["DolbyActive"].hide() def checkCrypted(self, service): info = service.info() if info is not None: if info.getInfo(iServiceInformation.sIsCrypted) > 0: - self["CryptActive"].showWidget() + self["CryptActive"].show() else: - self["CryptActive"].hideWidget() + self["CryptActive"].hide() def gotServiceEvent(self, ev): service = self.session.nav.getCurrentService() @@ -1133,9 +1133,9 @@ class InfoBarAdditionalInfo: self.checkDolby(service) elif ev == iPlayableService.evEnd: self.hideSubServiceIndication() - self["CryptActive"].hideWidget() - self["DolbyActive"].hideWidget() - self["FormatActive"].hideWidget() + self["CryptActive"].hide() + self["DolbyActive"].hide() + self["FormatActive"].hide() class InfoBarNotifications: def __init__(self): diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index f13e14b5..78224e14 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -24,11 +24,11 @@ class MessageBox(Screen): self.list = [] if type != self.TYPE_ERROR: - self.onShown.append(self["ErrorPixmap"].hideWidget) + self["ErrorPixmap"].hide() elif type != self.TYPE_YESNO: - self.onShown.append(self["QuestionPixmap"].hideWidget) + self["QuestionPixmap"].hide() elif type != self.TYPE_INFO: - self.onShown.append(self["InfoPixmap"].hideWidget) + self["InfoPixmap"].hide() if type == self.TYPE_YESNO: self.list = [ (_("yes"), 0), (_("no"), 1) ]