def __init__(self, session): Screen.__init__(self, session) HelpableScreen.__init__(self) # Initialize widgets self["key_green"] = StaticText(_("OK")) self["key_red"] = StaticText(_("Cancel")) self["key_yellow"] = StaticText("") self["key_blue"] = StaticText(_("Run")) self["plugins"] = StaticText(_("Plugins")) self["extensions"] = StaticText(_("Extensions")) self["eventinfo"] = StaticText(_("Eventinfo")) self["tabbar"] = MultiPixmap() self["list"] = SelectionList([]) self.selectedList = LIST_PLUGINS self.updateList() self["PluginHiderSetupActions"] = HelpableActionMap(self, "PluginHiderSetupActions", { "ok": (self["list"].toggleSelection, _("toggle selection")), "cancel": (self.cancel, _("end editing")), "green": (self.save, _("save")), "blue": (self.run, _("run selected plugin")), "next": (self.next, _("select next tab")), "previous": (self.previous, _("select previous tab")), }, -1 ) self.onLayoutFinish.append(self.setCustomTitle)
def __init__(self): self["rc"] = MultiPixmap() self["arrowdown"] = MovingPixmap() self["arrowdown2"] = MovingPixmap() self["arrowup"] = MovingPixmap() self["arrowup2"] = MovingPixmap() config.misc.rcused = ConfigInteger(default=1) sizes = componentSizes[Rc.SKIN_COMPONENT_KEY] rcheight = sizes.get(Rc.SKIN_COMPONENT_RCHEIGHT, 500) rcheighthalf = sizes.get(Rc.SKIN_COMPONENT_RCHEIGHTHALF, 250) self.rcheight = rcheight self.rcheighthalf = rcheighthalf self.selectpics = [] self.selectpics.append((self.rcheighthalf, ["arrowdown", "arrowdown2"], (-18, -70))) self.selectpics.append((self.rcheight, ["arrowup", "arrowup2"], (-18, 0))) self.readPositions() self.clearSelectedKeys() self.onShown.append(self.initRc)
def __init__(self, session, args=0): self.session = session Screen.__init__(self, session) self['area'] = Label(_('Area:')) self['areavalue'] = Label() self['hd'] = Label(_('HD Bouquet:')) self['hdcheck'] = MultiPixmap() self["status"] = Label(_("Next Backup:")) self["status2"] = Label() self["key_red"] = Button(_("Cancel")) self["key_green"] = Button(_("Start")) self["key_yellow"] = Button(_("Help")) self["key_blue"] = Button(_("About")) self["myActionMap"] = ActionMap( [ "SetupActions", "ColorActions", "MenuActions", "TimerEditActions" ], { "red": self.cancel, "green": self.question, "yellow": self.help, "blue": self.about, "cancel": self.cancel, "ok": self.question, 'log': self.showLog, "menu": self.createSetup, }, -1) self.wasinstabdby = False self.onLayoutFinish.append(self.doneConfiguring)
def __init__(self, session): Screen.__init__(self, session) Screen.setTitle(self, _("Network Information")) self.skinName = ["SystemNetworkInfo", "About"] OpenNFRVersion = _("OpenNFR %s") % about.getImageVersionString() self["OpenNFRVersion"] = Label(OpenNFRVersion) self["LabelBSSID"] = StaticText() self["LabelESSID"] = StaticText() self["LabelQuality"] = StaticText() self["LabelSignal"] = StaticText() self["LabelBitrate"] = StaticText() self["LabelEnc"] = StaticText() self["LabelChannel"] = StaticText(_('Channel:')) self["LabelEncType"] = StaticText(_('Encryption Type:')) self["LabelFrequency"] = StaticText(_('Frequency:')) self["LabelFrequencyNorm"] = StaticText(_('Frequency Norm:')) self["BSSID"] = StaticText() self["ESSID"] = StaticText() self["quality"] = StaticText() self["signal"] = StaticText() self["bitrate"] = StaticText() self["enc"] = StaticText() self["channel"] = StaticText() self["encryption_type"] = StaticText() self["frequency"] = StaticText() self["frequency_norm"] = StaticText() self["IFtext"] = StaticText() self["IF"] = StaticText() self["Statustext"] = StaticText() self["statuspic"] = MultiPixmap() self["statuspic"].setPixmapNum(1) self["statuspic"].hide() self.iface = None self.createscreen() self.iStatus = None if iNetwork.isWirelessInterface(self.iface): try: from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus self.iStatus = iStatus except: pass self.resetList() self.onClose.append(self.cleanup) self.updateStatusbar() self["key_red"] = StaticText(_("Close")) self["actions"] = ActionMap( ["SetupActions", "ColorActions", "DirectionActions"], { "cancel": self.close, "ok": self.close, "up": self["AboutScrollLabel"].pageUp, "down": self["AboutScrollLabel"].pageDown })
def __init__(self, session): Screen.__init__(self, session) self["state"] = Label(text="") self["speed"] = Label(text="") self["statusicon"] = MultiPixmap() self["PTSSeekPointer"] = Pixmap() self["eventname"] = Label(text="")
def __init__(self, session, args=None): Screen.__init__(self, session) InfoBarAudioSelection.__init__(self) InfoBarCueSheetSupport.__init__(self, actionmap="MediaPlayerCueSheetActions") InfoBarNotifications.__init__(self) InfoBarBase.__init__(self) InfoBarScreenSaver.__init__(self) InfoBarSubtitleSupport.__init__(self) HelpableScreen.__init__(self) self.summary = None self.oldService = self.session.nav.getCurrentlyPlayingServiceReference( ) self.session.nav.stopService() self.playlistparsers = {} self.addPlaylistParser(PlaylistIOM3U, "m3u") self.addPlaylistParser(PlaylistIOPLS, "pls") self.addPlaylistParser(PlaylistIOInternal, "e2pls") # 'None' is magic to start at the list of mountpoints defaultDir = config.mediaplayer.defaultDir.getValue() self.filelist = FileList( defaultDir, matchingPattern= "(?i)^.*\.(mp2|mp3|ogg|ts|mts|m2ts|wav|wave|m3u|pls|e2pls|mpg|vob|avi|divx|m4v|mkv|mp4|m4a|dat|flac|flv|mov|dts|3gp|3g2|asf|wmv|wma)", useServiceRef=True, additionalExtensions="4098:m3u 4098:e2pls 4098:pls") self["filelist"] = self.filelist self.playlist = MyPlayList() self.is_closing = False self.delname = "" self.playlistname = "" self["playlist"] = self.playlist self["PositionGauge"] = ServicePositionGauge(self.session.nav) self["currenttext"] = Label("") self["artisttext"] = Label(_("Artist") + ':') self["artist"] = Label("") self["titletext"] = Label(_("Title") + ':') self["title"] = Label("") self["albumtext"] = Label(_("Album") + ':') self["album"] = Label("") self["yeartext"] = Label(_("Year") + ':') self["year"] = Label("") self["genretext"] = Label(_("Genre") + ':') self["genre"] = Label("") self["coverArt"] = MediaPixmap() self["repeat"] = MultiPixmap() self.seek_target = None try: from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier hotplugNotifier.append(self.hotplugCB) except Exception, ex: print "[MediaPlayer] No hotplug support", ex
def __init__(self, session): Screen.__init__(self, session) self['connect'] = MultiPixmap() self['connect'].setPixmapNum(0) self['lab1'] = Label('') self.mylist = [ 'Libraries', 'Binaries', 'Cams', 'Scripts', 'Bootlogos', 'Uninstall files', 'General Settings', 'Cron', 'Settings Channels Bouquets', 'Openvpn', 'Satellites Terrestrial', 'Plugins', 'END' ] self.mytmppath = '/media/hdd/' if fileExists('/etc/bhpersonalbackup'): f = open('/etc/bhpersonalbackup', 'r') self.mytmppath = f.readline().strip() f.close() self.mytmppath += 'bhbackuptmp' self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.updatepix) self.onShow.append(self.startShow) self.onClose.append(self.delTimer) system('rm -rf ' + self.mytmppath) system('mkdir ' + self.mytmppath) system('mkdir ' + self.mytmppath + '/etc') system('mkdir ' + self.mytmppath + '/usr') configfile.save()
def __init__(self, session, streamurl, servicetype): Screen.__init__(self, session) self.session = session for x in InfoBarBase, \ InfoBarMenu, \ InfoBarSeek, \ InfoBarAudioSelection, \ InfoBarMoviePlayerSummarySupport, \ InfoBarSubtitleSupport, \ InfoBarSummarySupport, \ InfoBarServiceErrorPopupSupport, \ InfoBarNotifications, \ IPTVInfoBarShowHide: x.__init__(self) IPTVInfoBarPVRState.__init__(self, PVRState, True) if cfg.subs.value is True: SubsSupport.__init__(self, searchSupport=True, embeddedSupport=True) SubsSupportStatus.__init__(self) self.streamurl = streamurl self.servicetype = servicetype skin = skin_path + 'catchupplayer.xml' self["epg_description"] = StaticText() self["streamcat"] = StaticText() self["streamtype"] = StaticText() self["extension"] = StaticText() self["epg_picon"] = Pixmap() self["eventname"] = Label() self["state"] = Label() self["speed"] = Label() self["statusicon"] = MultiPixmap() self["PTSSeekBack"] = Pixmap() self["PTSSeekPointer"] = Pixmap() with open(skin, 'r') as f: self.skin = f.read() self.setup_title = _('Catch Up') self['actions'] = ActionMap( ["XStreamityActions"], { 'cancel': self.back, 'red': self.back, 'tv': self.toggleStreamType, 'info': self.toggleStreamType, "stop": self.back, "green": self.toggleAspectRatio }, -2) self.onFirstExecBegin.append( boundFunction(self.playStream, self.servicetype, self.streamurl))
def __init__(self, session, comlist): Screen.__init__(self, session) self["actions"] = ActionMap( ["OkCancelActions", "ColorActions"], { "cancel": self.Exit, "green": self.KeyGreen, #"red": self.KeyRed }, -1) self.setTitle(_("execute")) self["PixmapButton"] = MultiPixmap() self["LabelButton"] = Label(_("Start") + " ?") self.mountlist = [] list = [] for x in comlist: print(x) list.append((x[1], None, x[0])) if x[2] is not None: self.mountlist.append(x[2]) self["list"] = List(list) self.__Stimer = eTimer() self.__Stimer.callback.append(self.__exeList) self.__state = -1
def __init__(self, session): Screen.__init__(self, session) self.skinName = "TunerState_v2" self["Background"] = Pixmap() self["picon"] = Pixmap() self["Type"] = MultiPixmap() self["Progress"] = ProgressBar() for i in xrange(len(config.infobartunerstate.fields.dict())): #for i, c in enumerate( config.infobartunerstate.fields.dict().itervalues() ): label = Label() #fieldid = "Field"+str(i) self["Field" + str(i)] = label self.padding = 0 self.spacing = 0 self.widths = [] self.typewidth = 0 self.progresswidth = 0 self.toberemoved = False self.onLayoutFinish.append(self.layoutFinished)
def __init__(self, session): Screen.__init__(self, session) Screen.setTitle(self, _("OnDemand")) self["arrowup"] = MultiPixmap() self["arrowdown"] = MultiPixmap() self["actions"] = ActionMap(["SetupActions", "TimerEditActions"], { "ok" : self.keyOK, "cancel": self.keyCancel, "menu" : self.keySetup, "log" : self.keyInfo }, -1) self['PlayerList'] = MainMenuList() self.onLayoutFinish.append(self.layoutFinished)
def __init__(self): self["rc"] = MultiPixmap() self['red'] = MovingPixmap() self['tunera'] = MovingPixmap() self['tunerb'] = MovingPixmap() self['tunerc'] = MovingPixmap() self['tunerd'] = MovingPixmap() self["arrowdown"] = MovingPixmap() self["arrowdown2"] = MovingPixmap() self["arrowup"] = MovingPixmap() self["arrowup2"] = MovingPixmap() config.misc.rcused = ConfigInteger(default=1) self.isDefaultRc = rc_model.rcIsDefault() self.rcheight = 500 self.rcheighthalf = 250 self.selectpics = [] self.selectpics.append((self.rcheighthalf, ["arrowdown", "arrowdown2"], (-18, -70))) self.selectpics.append((self.rcheight, ["arrowup", "arrowup2"], (-18, 0))) self['red'].hide() #if self.has_key('languagetext'): # self['languagetext'].hide() self.readPositions() self.clearSelectedKeys() self.onShown.append(self.initRc)
def __init__(self, session, streamurl, servicetype): Screen.__init__(self, session) self.session = session InfoBarBase.__init__(self) InfoBarMoviePlayerSummarySupport.__init__(self) InfoBarServiceNotifications.__init__(self) IPTVInfoBarShowHide.__init__(self) InfoBarSeek.__init__(self) InfoBarAudioSelection.__init__(self) InfoBarSubtitleSupport.__init__(self) IPTVInfoBarPVRState.__init__(self, PVRState, True) InfoBarInstantRecord.__init__(self) self.streamurl = streamurl self.servicetype = servicetype skin = skin_path + 'streamplayer.xml' self["epg_description"] = StaticText() self["nowchannel"] = StaticText() self["nowtitle"] = StaticText() self["nexttitle"] = StaticText() self["nowtime"] = StaticText() self["nexttime"] = StaticText() self["streamcat"] = StaticText() self["streamtype"] = StaticText() self["extension"] = StaticText() self["progress"] = ProgressBar() self["progress"].hide() self["epg_picon"] = Pixmap() self["eventname"] = Label() self["state"] = Label() self["speed"] = Label() self["statusicon"] = MultiPixmap() self["PTSSeekBack"] = Pixmap() self["PTSSeekPointer"] = Pixmap() with open(skin, 'r') as f: self.skin = f.read() self.setup_title = _('TV') self['actions'] = ActionMap( ["XStreamityActions"], { 'cancel': self.back, 'tv': self.toggleStreamType, "channelUp": self.next, "channelDown": self.prev, "up": self.prev, "down": self.next, "stop": self.back, "rec": self.IPTVstartInstantRecording, }, -2) self.onLayoutFinish.append(self.__layoutFinished)
def __init__(self, session): Screen.__init__(self, session) self['eventname'] = Label() self['state'] = Label() self['speed'] = Label() self['statusicon'] = MultiPixmap() self['PTSSeekBack'] = Pixmap() self['PTSSeekPointer'] = Pixmap()
def __init__(self, session, service, slist=None, lastservice=None): Screen.__init__(self, session) InfoBarAspectSelection.__init__(self) InfoBarAudioSelection.__init__(self) InfoBarSimpleEventView.__init__(self) self.pts_pvrStateDialog = "" self["key_yellow"] = Label() self["key_blue"] = Label() self["key_green"] = Label() self["eventname"] = Label() self["state"] = Label() self["speed"] = Label() self["statusicon"] = MultiPixmap() self["actions"] = HelpableActionMap( self, "MoviePlayerActions", { "leavePlayer": (self.leavePlayer, _("leave movie player...")), "leavePlayerOnExit": (self.leavePlayerOnExit, _("leave movie player...")) }) self.allowPiP = True for x in HelpableScreen, InfoBarShowHide, InfoBarLongKeyDetection, InfoBarMenu, InfoBarEPG, \ InfoBarBase, InfoBarSeek, InfoBarShowMovies, InfoBarInstantRecord, \ InfoBarAudioSelection, InfoBarNotifications, InfoBarSimpleEventView, \ InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, \ InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, \ InfoBarTeletextPlugin, InfoBarServiceErrorPopupSupport, InfoBarExtensions, \ InfoBarPlugins, InfoBarPiP, InfoBarZoom, InfoBarButtonSetup: x.__init__(self) #Blackhole self.oldeiconfig = config.misc.deliteeinfo.value config.misc.deliteeinfo.value = False #End self.onChangedEntry = [] self.servicelist = slist self.lastservice = lastservice or session.nav.getCurrentlyPlayingServiceOrGroup( ) session.nav.playService(service) self.cur_service = service self.returning = False self.onClose.append(self.__onClose) self.onShow.append(self.doButtonsCheck) self.__event_tracker = ServiceEventTracker( screen=self, eventmap={enigma.iPlayableService.evStart: self.__evStart}) assert MoviePlayer.instance is None, "class InfoBar is a singleton class and just one instance of this class is allowed!" MoviePlayer.instance = self # is needed for every first call of MoviePlayer self.__evStart()
def applySkin(self, desktop, screen): if self.skinAttributes is not None: for (attrib, value) in self.skinAttributes: if attrib == "pixmaps": pixmaps = value.split(',') for p in pixmaps: self.pixmapFiles.append(p) break return MultiPixmap.applySkin(self, desktop, screen)
def __init__(self, session, title): Screen.__init__(self, session) msg = _('Please wait while starting\n') + title + '...' self['connect'] = MultiPixmap() self['lab1'] = Label(msg) self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.updatepix) self.onShow.append(self.startShow) self.onClose.append(self.delTimer)
def __init__(self, session, filelist, index, filelistsort=0): print("MDC-I: Picture: MDCPicturePlayer: __init__") self.slideshow_active = False self.filelistsort = filelistsort size_w = getDesktop(0).size().width() size_h = getDesktop(0).size().height() #print("MDC: Picture: __init__: size_w: %s, size_h: %s" % (size_w, size_h)) ico_mp_forward = getSkinPath('images/media-seek-forward.svg') ico_mp_rewind = getSkinPath('images/media-seek-backward.svg') self.skin =\ '<screen position="0,0" size="1920,1080" flags="wfNoBorder" >\ <widget name="BGlabel" position="0,0" zPosition="0" size="1920,1080" />\ <widget name="pic" position="0,0" size="1920,1080" zPosition="1" />\ <widget name="play_icon" position="5,3" size="25,25" zPosition="2" pixmaps="' + ico_mp_forward + ',' + ico_mp_rewind + '" alphatest="on" />\ <widget name="label" position="35,5" size="1885,25" font="Regular;18" halign="left" zPosition="2" noWrap="1" transparent="1" />\ </screen>' PixmapDisplay.__init__(self) Screen.__init__(self, session) HelpableScreen.__init__(self) self["actions"] = HelpableActionMap( self, "MDCActions", { 'menu': (self.KeyMenu, _('Settings')), 'info': (self.KeyInfo, _('Information')), 'playpause': (self.PlayPause, _('Pause / Resume') + ' ' + _('Slideshow')), 'stop': (self.stopSlideshow, _('Stop') + ' ' + _('Slideshow')), 'historyNext': (self.nextFile, _('Next picture')), 'right': (self.nextFile, _('Next picture')), 'historyBack': (self.prevFile, _('Previous picture')), 'left': (self.prevFile, _('Previous picture')), 'yellow': (self.rotateFile, _('Rotate picture')), 'blue': (self.toggleInfo, _('Toggle info')), 'exit': (self.KeyExit, _('Exit')), 'red': (self.KeyExit, _('Exit')), }, prio=-1) self['BGlabel'] = Label() self['pic'] = Pixmap() self['play_icon'] = MultiPixmap() self['label'] = Label() self['lcdinfo'] = StaticText() self['title'] = StaticText() self.filelist = filelist self.fileindex = index self.tempfile = None self.direction = 1 self.slideTimer = eTimer() self.slideTimer_conn = self.slideTimer.timeout.connect(self.nextSlide) self.onLayoutFinish.append(self.LayoutFinish)
def __init__(self, session, name, what): Screen.__init__(self, session) msg = _('Please wait ') + '%s\n %s ...' % (what, name) self['connect'] = MultiPixmap() self['lab1'] = Label(msg) self.delay = 800 if what == _('Starting'): self.delay = 3000 self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.end) self.onShow.append(self.startShow)
def __init__(self, session, selectedcam): Screen.__init__(self, session) Screen.setTitle(self, _("Softcam starting...")) self['connect'] = MultiPixmap() self['lab1'] = Label(_("Please wait while starting\n") + selectedcam + '...') global startselectedcam startselectedcam = selectedcam self.Console = Console() self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.updatepix) self.onShow.append(self.startShow) self.onClose.append(self.delTimer)
def __init__(self, session, selectedcam): Screen.__init__(self, session) global stopselectedcam stopselectedcam = selectedcam Screen.setTitle(self, _("Softcam stopping...")) self["connect"] = MultiPixmap() self["lab1"] = Label(_("Please wait while stopping\n") + selectedcam + "...") self.Console = Console() self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.updatepix) self.onShow.append(self.getStopPID) self.onClose.append(self.delTimer)
def __init__(self, session): Screen.__init__(self, session) self.mode4ds_title = _("LAN Setting") self["status"] = StaticText() self.enableConfigEntry = None self.enableEntry = None self.connectEntry = None self.list = [] self.onChangedEntry = [] self.mode_4dssetup = ConfigOnOff( default=os.path.exists("/etc/.4dsmode")) ConfigListScreen.__init__(self, self.list, session=session, on_change=self.changedEntry) config.lists = ConfigSubsection() self["description"] = StaticText() self["Statustext"] = StaticText() self["statuspic"] = MultiPixmap() self["statuspic"].hide() if os.path.exists("/etc/.4dsmode"): self["key_red"] = StaticText(_("Cancel")) self["key_green"] = StaticText(_("Save")) self["key_yellow"] = StaticText(_("Download Key")) self["actions"] = NumberActionMap( ["SetupActions", "MenuActions", "ColorActions"], { "cancel": self.keyCancel, "save": self.apply, "menu": self.closeRecursive, "ok": self.openSelected, "yellow": self.downloadKey, }, -2) else: self["key_red"] = StaticText(_("Cancel")) self["key_green"] = StaticText(_("Save")) self["actions"] = NumberActionMap( ["SetupActions", "MenuActions"], { "cancel": self.keyCancel, "save": self.apply, "menu": self.closeRecursive, "ok": self.openSelected, }, -2) if not self.SelectionChanged in self["config"].onSelectionChanged: self["config"].onSelectionChanged.append(self.SelectionChanged) config.lists = ConfigSubsection() self.createSetup() self.onLayoutFinish.append(self.layoutFinished)
def __init__(self, session, iface): Screen.__init__(self, session) self.session = session self.iface = iface self["LabelBSSID"] = StaticText(_('Accesspoint:')) self["LabelESSID"] = StaticText(_('SSID:')) self["LabelQuality"] = StaticText(_('Link quality:')) self["LabelSignal"] = StaticText(_('Signal strength:')) self["LabelBitrate"] = StaticText(_('Bitrate:')) self["LabelEnc"] = StaticText(_('Encryption:')) self["LabelChannel"] = StaticText(_('Channel:')) self["LabelEncType"] = StaticText(_('Encryption Type:')) self["LabelFrequency"] = StaticText(_('Frequency:')) self["LabelFrequencyNorm"] = StaticText(_('Frequency Norm:')) self["BSSID"] = StaticText() self["ESSID"] = StaticText() self["quality"] = StaticText() self["signal"] = StaticText() self["bitrate"] = StaticText() self["enc"] = StaticText() self["channel"] = StaticText() self["encryption_type"] = StaticText() self["frequency"] = StaticText() self["frequency_norm"] = StaticText() self["IFtext"] = StaticText() self["IF"] = StaticText() self["Statustext"] = StaticText() self["statuspic"] = MultiPixmap() self["statuspic"].hide() self["key_red"] = StaticText(_("Close")) self.resetList() self.updateStatusbar() self["actions"] = NumberActionMap([ "WizardActions", "InputActions", "EPGSelectActions", "ShortcutActions" ], { "ok": self.exit, "back": self.exit, "red": self.exit, }, -1) self.timer = eTimer() self.timer.timeout.get().append(self.resetList) self.onShown.append(lambda: self.timer.start(16000)) self.onLayoutFinish.append(self.layoutFinished) self.onClose.append(self.cleanup)
def __init__(self, session, name, what): Screen.__init__(self, session) msg = _("Please wait ") + "%s\n %s ..." % (what, name) self["connect"] = MultiPixmap() self["lab1"] = Label(msg) self.delay = 800 if what == _("Starting"): self.delay = 3000 self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.end) self.onShow.append(self.startShow)
def __init__(self, session, myurl, downfile): Screen.__init__(self, session) self['connect'] = MultiPixmap() self['connect'].setPixmapNum(0) self['lab1'] = Label(_('Wait please connection in progress ...')) self.myurl = myurl self.downfile = downfile self.activityTimer = eTimer() if self.downfile == 'N/A': self.activityTimer.timeout.get().append(self.updatepixWget) else: self.activityTimer.timeout.get().append(self.updatepix) self.onShow.append(self.startShow) self.onClose.append(self.delTimer)
def __init__(self): self["rc"] = MultiPixmap() nSelectPics = 16 rcHeights = (500, ) * 2 self.selectPics = [] for indicator in range(nSelectPics): self.selectPics.append( self.KeyIndicator( self, rcHeights, ("indicatorU%d" % indicator, "indicatorL%d" % indicator))) self.rcPositions = RcPositions() self.oldNSelectedKeys = self.nSelectedKeys = 0 self.clearSelectedKeys() self.onLayoutFinish.append(self.initRc)
def creatLables(self): if iNetwork.isWirelessInterface(self.testiface): self["ConfigWifiText"] = MultiColorLabel( _("WLAN connection config")) # else: self["ConfigWifiText"] = MultiColorLabel( _("LAN connection config")) # self["ConfigTestInfo"] = MultiColorLabel() #Teststatus # self["ConfigTestInfo"] = StaticText("") self["ConfigTest_OK"] = MultiPixmap() #testicon self["ConfigTest_OK"].hide() self["DhcpText"] = MultiColorLabel(_("DHCP")) # self["DhcpTestInfo"] = MultiColorLabel() #Teststatus self["DhcpTest_OK"] = MultiPixmap() #testicon self["DhcpTest_OK"].hide() self["connectText"] = MultiColorLabel(_("Network Connection Test")) # self["connectTestInfo"] = MultiColorLabel() #Teststatus self["connectTest_OK"] = MultiPixmap() #testicon self["connectTest_OK"].hide() self["opreateInfo"] = Label(_("Press 'OK' start"))
def __init__(self, session): Screen.__init__(self, session) Screen.setTitle(self, _("Network Information")) self.skinName = ["SystemNetworkInfo", "WlanStatus"] self["LabelBSSID"] = StaticText() self["LabelESSID"] = StaticText() self["LabelQuality"] = StaticText() self["LabelSignal"] = StaticText() self["LabelBitrate"] = StaticText() self["LabelEnc"] = StaticText() self["BSSID"] = StaticText() self["ESSID"] = StaticText() self["quality"] = StaticText() self["signal"] = StaticText() self["bitrate"] = StaticText() self["enc"] = StaticText() self["IFtext"] = StaticText() self["IF"] = StaticText() self["Statustext"] = StaticText() self["statuspic"] = MultiPixmap() self["statuspic"].setPixmapNum(1) self["statuspic"].show() self.iface = None self.createscreen() self.iStatus = None if iNetwork.isWirelessInterface(self.iface): try: from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus self.iStatus = iStatus except: pass self.resetList() self.onClose.append(self.cleanup) self.updateStatusbar() self["key_red"] = StaticText(_("Close")) self["actions"] = ActionMap( ["SetupActions", "ColorActions", "DirectionActions"], { "cancel": self.close, "ok": self.close, "up": self["AboutScrollLabel"].pageUp, "down": self["AboutScrollLabel"].pageDown })
def __init__(self, session, streamurl, servicetype): Screen.__init__(self, session) self.session = session InfoBarBase.__init__(self) InfoBarMoviePlayerSummarySupport.__init__(self) InfoBarServiceNotifications.__init__(self) InfoBarShowHide.__init__(self) InfoBarSeek.__init__(self) InfoBarAudioSelection.__init__(self) InfoBarSubtitleSupport.__init__(self) IPTVInfoBarPVRState.__init__(self, PVRState, True) SubsSupport.__init__(self, searchSupport=True, embeddedSupport=True) SubsSupportStatus.__init__(self) self.streamurl = streamurl self.servicetype = servicetype skin = skin_path + 'vodplayer.xml' self["streamcat"] = StaticText() self["streamtype"] = StaticText() self["extension"] = StaticText() self["cover"] = Pixmap() self["eventname"] = Label() self["state"] = Label() self["speed"] = Label() self["statusicon"] = MultiPixmap() with open(skin, 'r') as f: self.skin = f.read() self.setup_title = _('VOD') self['actions'] = ActionMap( ["XStreamityActions"], { 'cancel': self.back, 'tv': self.toggleStreamType, "channelUp": self.next, "channelDown": self.prev, "up": self.prev, "down": self.next, "stop": self.back, }, -2) self.onLayoutFinish.append(self.__layoutFinished)
def __init__(self, session, service, slist=None, lastservice=None): Screen.__init__(self, session) self["key_yellow"] = Label() self["key_blue"] = Label() self["key_green"] = Label() self["eventname"] = Label() self["state"] = Label() self["speed"] = Label() self["statusicon"] = MultiPixmap() self["actions"] = HelpableActionMap( self, "MoviePlayerActions", { "leavePlayer": (self.leavePlayer, self._helpLeavePlayer), "leavePlayerOnExit": (self.leavePlayerOnExit, self._helpLeavePlayerOnExit) }, description=_("Movie player")) self.allowPiP = True for x in (HelpableScreen, InfoBarShowHide, InfoBarLongKeyDetection, InfoBarEPG, InfoBarBase, InfoBarSeek, InfoBarShowMovies, InfoBarInstantRecord, InfoBarAudioSelection, InfoBarTimerButton, InfoBarNotifications, InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarMoviePlayerSummarySupport, InfoBarSubtitleSupport, InfoBarTeletextPlugin, InfoBarServiceErrorPopupSupport, InfoBarExtensions, InfoBarPlugins, InfoBarPiP, InfoBarZoom, InfoBarButtonSetup): x.__init__(self) self.onChangedEntry = [] self.servicelist = slist self.lastservice = lastservice or session.nav.getCurrentlyPlayingServiceOrGroup( ) session.nav.playService(service) self.cur_service = service self.returning = False self.onClose.append(self.__onClose) self.onShow.append(self.doButtonsCheck) config.misc.standbyCounter.addNotifier(self.standbyCountChanged, initial_call=False) assert MoviePlayer.instance is None, "class InfoBar is a singleton class and just one instance of this class is allowed!" MoviePlayer.instance = self
def __init__(self): MultiPixmap.__init__(self) self.pixmapFiles = []