def okbuttonClick(self): selection = self["menu"].getCurrent() if selection is not None: if selection[1] == "radio": InfoBar.showRadio(InfoBar.instance) self.exit() if selection[1] == "tv": InfoBar.showTv(InfoBar.instance) self.exit() elif selection[1] == "pvr": InfoBar.showMovies(InfoBar.instance) elif selection[1] == "bmc": InfoBar.showMediaCenter(InfoBar.instance) elif selection[1] == "emc": try: from Plugins.Extensions.EnhancedMovieCenter.plugin import showMoviesNew open(showMoviesNew(InfoBar.instance)) except Exception as e: print('[EMCPlayer] showMovies exception:\n' + str(e)) elif selection[1] == "MediaPortal": InfoBar.showPORTAL(InfoBar.instance) elif selection[1] == "MediaPlayer": InfoBar.showMediaPlayer(InfoBar.instance) elif selection[1] == "AZPlay": try: from Plugins.Extensions.AZPlay.plugin import main open(main(self.session)) except Exception as e: print('[AZPlay] exception:\n' + str(e)) elif selection[1] == "teletext": self.InfoBarTeletextPlugin()
def okbuttonClick(self): selection = self["menu"].getCurrent() if selection is not None: if selection[1] == "radio": InfoBar.showRadio(InfoBar.instance) self.exit() if selection[1] == "tv": InfoBar.showTv(InfoBar.instance) self.exit() elif selection[1] == "pvr": InfoBar.showMovies(InfoBar.instance)
def okbuttonClick(self): selection = self['menu'].getCurrent() if selection is not None: if selection[1] == 'radio': InfoBar.showRadio(InfoBar.instance) self.exit() if selection[1] == 'tv': InfoBar.showTv(InfoBar.instance) self.exit() elif selection[1] == 'pvr': InfoBar.showMovies(InfoBar.instance) elif selection[1] == 'bmc': InfoBar.showMediaCenter(InfoBar.instance) return
def okbuttonClick(self): selection = self["menu"].getCurrent() if selection is not None: if selection[1] == "radio": InfoBar.showRadio(InfoBar.instance) self.exit() if selection[1] == "tv": InfoBar.showTv(InfoBar.instance) self.exit() elif selection[1] == "pvr": InfoBar.showMovies(InfoBar.instance) elif selection[1] == "bmc": InfoBar.showMediaCenter(InfoBar.instance) elif selection[1] == "mediaplayer": InfoBar.showMediaPlayer(InfoBar.instance) elif selection[1] == "teletext": self.InfoBarTeletextPlugin()
def okbuttonClick(self): print "okbuttonClick" selection = self["menu"].getCurrent() if selection is not None: if selection[1] == "videos": x = self.procservice() if x == 1: self.session.openWithCallback(self.tmpcallback, MC_VideoPlayer) elif selection[1] == "recordings": InfoBar.showMovies(InfoBar.instance) elif selection[1] == "music": # x = self.procservice() # if x == 1: self.session.openWithCallback(self.tmpcallback, MC_AudioPlayer) elif selection[1] == "pictures": self.session.openWithCallback(self.tmpcallback, MC_PictureViewer) else: self.session.open(MessageBox,_("Error: Something is wrong, cannot find") + " %s\n" % (selection[1]), MessageBox.TYPE_INFO)
def startRecordings(self): selection = self["menu"].getCurrent() if selection is not None: InfoBar.showMovies(InfoBar.instance) else: self.session.open(MessageBox,_("Error: Something is wrong, cannot find") + " %s\n" % (selection[1]), MessageBox.TYPE_INFO)