• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python contextElement.cContextElement函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中resources.lib.gui.contextElement.cContextElement函数的典型用法代码示例。如果您正苦于以下问题:Python cContextElement函数的具体用法?Python cContextElement怎么用?Python cContextElement使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了cContextElement函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: showHoster

 def showHoster(self, oGui, oHoster, sMediaUrl, sThumbnail, bGetRedirectUrl = False):
     
     oGuiElement = cGuiElement()
     oGuiElement.setSiteName(self.SITE_NAME)
     #oGuiElement.setFunction('showHosterMenu')
     oGuiElement.setFunction('play')
     oGuiElement.setTitle(oHoster.getDisplayName())
     oGuiElement.setThumbnail(sThumbnail)
     oGuiElement.setIcon('host.png')
     
     oOutputParameterHandler = cOutputParameterHandler()
     oOutputParameterHandler.addParameter('sMediaUrl', sMediaUrl)
     oOutputParameterHandler.addParameter('sHosterIdentifier', oHoster.getPluginIdentifier())
     oOutputParameterHandler.addParameter('bGetRedirectUrl', bGetRedirectUrl)
     oOutputParameterHandler.addParameter('sFileName', oHoster.getFileName())
     
     #context playlit menu
     oContext = cContextElement()
     oContext.setFile('cHosterGui')
     oContext.setSiteName(self.SITE_NAME)
     oContext.setFunction('addToPlaylist')
     oContext.setTitle('Ajouter à la playlist')
     oContext.setOutputParameterHandler(oOutputParameterHandler)
     oGuiElement.addContextItem(oContext)
     
     #context download menu
     oContext = cContextElement()
     oContext.setFile('cHosterGui')
     oContext.setSiteName(self.SITE_NAME)
     oContext.setFunction('download')
     oContext.setTitle('Télécharger')
     oContext.setOutputParameterHandler(oOutputParameterHandler)
     oGuiElement.addContextItem(oContext)
     
     oGui.addFolder(oGuiElement, oOutputParameterHandler)
开发者ID:moh637,项目名称:venom-xbmc-addons,代码行数:35,代码来源:hoster.py


示例2: createContexMenuPageSelect

 def createContexMenuPageSelect(self, oGuiElement, oOutputParameterHandler):
     #sSiteUrl = oGuiElement.getSiteName()
     
     oContext = cContextElement()
     
     oContext.setFile('cGui')
     oContext.setSiteName('cGui')
     
     oContext.setFunction('selectpage')
     oContext.setTitle('[COLOR azure]Selectionner page[/COLOR]')
     oOutputParameterHandler.addParameter('OldFunction', oGuiElement.getFunction())
     oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
     oContext.setOutputParameterHandler(oOutputParameterHandler)
     oGuiElement.addContextItem(oContext)
     
     oContext = cContextElement()
     
     oContext.setFile('cGui')
     oContext.setSiteName('cGui')
     
     oContext.setFunction('viewback')
     oContext.setTitle('[COLOR azure]Retour Site[/COLOR]')
     oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
     oContext.setOutputParameterHandler(oOutputParameterHandler)
     oGuiElement.addContextItem(oContext)
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:25,代码来源:gui.py


示例3: __createContextMenu

    def __createContextMenu(self, oGuiElement, oListItem):
        sPluginPath = cPluginHandler().getPluginPath();
        aContextMenus = []

        #Menus classiques reglés a la base
        if (len(oGuiElement.getContextItems()) > 0):
            for oContextItem in oGuiElement.getContextItems():                
                oOutputParameterHandler = oContextItem.getOutputParameterHandler()
                sParams = oOutputParameterHandler.getParameterAsUri()
                sTest = '%s?site=%s&function=%s&%s' % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)                
                aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s)" % (sTest,),)]

            #oListItem.addContextMenuItems(aContextMenus)
            oListItem.addContextMenuItems(aContextMenus, True)    

        #Ajout de voir marque page
        oContextItem = cContextElement()
        oContextItem.setFile('cFav')
        oContextItem.setSiteName('cFav')
        oContextItem.setTitle('[COLOR teal]'+cConfig().getlanguage(30210)+'[/COLOR]')
        oContextItem.setFunction('getFavourites')
        oOutputParameterHandler = oContextItem.getOutputParameterHandler()
        sParams = oOutputParameterHandler.getParameterAsUri()
        sTest = '%s?site=%s&function=%s&contextFav=true&%s' % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)
        aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.Container.Update(%s)" % (sTest,),)]
        oListItem.addContextMenuItems(aContextMenus)
        
        #Menu speciaux si metadata
        if  oGuiElement.getTrailerUrl(): 
            oOutputParameterHandler = cOutputParameterHandler()
            oOutputParameterHandler.addParameter('sHosterIdentifier', 'youtube')
            oOutputParameterHandler.addParameter('sMediaUrl', oGuiElement.getTrailerUrl())
            oOutputParameterHandler.addParameter('sFileName', oGuiElement.getTitle())
            oOutputParameterHandler.addParameter('sTitle', oGuiElement.getTitle())
            oContextItem = cContextElement()
            oContextItem.setFile('cHosterGui')
            oContextItem.setSiteName('cHosterGui')
            oContextItem.setTitle('[COLOR azure]Bande Annonce[/COLOR]')
            oContextItem.setFunction('play')
            oContextItem.setOutputParameterHandler(oOutputParameterHandler)
            
            oOutputParameterHandler = oContextItem.getOutputParameterHandler()
            sParams = oOutputParameterHandler.getParameterAsUri()
            sTest = '%s?site=%s&function=%s&%s' % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)
            aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s)" % (sTest,),)]
            oListItem.addContextMenuItems(aContextMenus)
        
        return oListItem
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:48,代码来源:gui.py


示例4: __createContextMenu

  def __createContextMenu(self, oGuiElement, oListItem):
    sPluginPath = cPluginHandler().getPluginPath();
    aContextMenus = []

    if len(oGuiElement.getContextItems()) > 0:
      for oContextItem in oGuiElement.getContextItems():                
        oOutputParameterHandler = oContextItem.getOutputParameterHandler()
        sParams = oOutputParameterHandler.getParameterAsUri()
        sTest = "%s?site=%s&function=%s&%s" % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)                
        aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s)" % (sTest,),)]

      oListItem.addContextMenuItems(aContextMenus)
      #oListItem.addContextMenuItems(aContextMenus, True)

    if oGuiElement.getSiteName() != "cAboutGui":            
      oContextItem = cContextElement()
      oContextItem.setFile("cAboutGui")
      oContextItem.setTitle("Ueber xStream")
      oContextItem.setFunction("show")
      oOutputParameterHandler = oContextItem.getOutputParameterHandler()
      sParams = oOutputParameterHandler.getParameterAsUri()
      sTest = "%s?site=%s&function=%s&%s" % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)
      aContextMenus+= [ ( oContextItem.getTitle(), "Container.Update(%s)" % (sTest,),)]
      oListItem.addContextMenuItems(aContextMenus)

    return oListItem
开发者ID:NICOLETTA1319,项目名称:xbmc-development-with-passion,代码行数:26,代码来源:gui.py


示例5: __createContextMenu

    def __createContextMenu(self, oGuiElement, oListItem, bIsFolder, oOutputParams=''):
        sPluginPath = cPluginHandler().getPluginPath()
        aContextMenus = []

        if len(oGuiElement.getContextItems()) > 0:
            for oContextItem in oGuiElement.getContextItems():
                oOutputParameterHandler = oContextItem.getOutputParameterHandler()
                sParams = oOutputParameterHandler.getParameterAsUri()
                sTest = "%s?site=%s&function=%s&%s" % (sPluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)
                aContextMenus += [(oContextItem.getTitle(), "XBMC.RunPlugin(%s)" % (sTest,),)]

        oContextItem = cContextElement()
        oContextItem.setTitle("Info")
        aContextMenus += [(oContextItem.getTitle(), "XBMC.Action(Info)",)]
        if not bIsFolder:
            oContextItem.setTitle("add to Playlist")

            aContextMenus += [(oContextItem.getTitle(), "XBMC.Action(Info)",)]
            oContextItem.setTitle("Download")
            aContextMenus += [(oContextItem.getTitle(), "XBMC.Action(Info)",)]
            oContextItem.setTitle("send to JDownloader")
            aContextMenus += [(oContextItem.getTitle(), "XBMC.Action(Info)",)]

        oListItem.addContextMenuItems(aContextMenus)
        return oListItem
开发者ID:krikkiteer,项目名称:xbmc-xstream-plugin,代码行数:25,代码来源:gui.py


示例6: addTV

    def addTV(self, sId, sFunction, sLabel, sIcon, sThumbnail, sDesc, oOutputParameterHandler = ''):
        cGui.CONTENT = "tvshows"
        oGuiElement = cGuiElement()
        oGuiElement.setSiteName(sId)
        oGuiElement.setFunction(sFunction)
        oGuiElement.setTitle(sLabel)
        oGuiElement.setIcon(sIcon)
        oGuiElement.setThumbnail(sThumbnail)
        oGuiElement.setMeta(2)
        oGuiElement.setDescription(sDesc)
        
        self.__createContexMenuWatch(oGuiElement, oOutputParameterHandler)
        self.__createContexMenuWriteFav(oGuiElement, oOutputParameterHandler)

        #context
        oContext = cContextElement()
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('writeFavourites')
        oContext.setTitle('[COLOR teal]Marque-série[/COLOR]')

        oOutputParameterHandler.addParameter('sTitle', sLabel)
        oOutputParameterHandler.addParameter('sId', sId)
        oOutputParameterHandler.addParameter('sFav', sFunction)
        oOutputParameterHandler.addParameter('sCat', 2)
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)
        oGuiElement.addContextItem(oContext)
        
        self.addFolder(oGuiElement, oOutputParameterHandler)
开发者ID:balazero,项目名称:venom-xbmc-addons,代码行数:30,代码来源:gui.py


示例7: addMovie

    def addMovie(self, sId, sFunction, sLabel, sIcon, sThumbnail, sDesc, oOutputParameterHandler = ''):
        cGui.CONTENT = "movies"
        oGuiElement = cGuiElement()
        oGuiElement.setSiteName(sId)
        oGuiElement.setFunction(sFunction)
        oGuiElement.setTitle(sLabel)
        oGuiElement.setIcon(sIcon)
        oGuiElement.setThumbnail(sThumbnail)
        oGuiElement.setMeta(1)
        oGuiElement.setDescription(sDesc)
        
        if oOutputParameterHandler.getValue('sMovieTitle'):
            sTitle = oOutputParameterHandler.getValue('sMovieTitle')
            oGuiElement.setFileName(sTitle)
            
        self.__createContexMenuWatch(oGuiElement, oOutputParameterHandler)
        self.__createContexMenuinfo(oGuiElement, oOutputParameterHandler)

        #context fav
        oContext = cContextElement()
        #sAction = 'setFavorite("%s", "%s", "%s")' % (1, sFunction, sId)                
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('setFavorite')
        #oContext.setTitle('[COLOR teal]Marque-film[/COLOR]')
        oContext.setTitle('[COLOR teal]'+cConfig().getLocalizedString(30206)+'[/COLOR]')

        #oOutputParameterHandler.addParameter('sTitle', sLabel)
        oOutputParameterHandler.addParameter('sId', sId)
        oOutputParameterHandler.addParameter('sFav', sFunction)
        oOutputParameterHandler.addParameter('sCat', 1)
        oContext.setOutputParameterHandler(oOutputParameterHandler)
        oGuiElement.addContextItem(oContext)

        self.addFolder(oGuiElement, oOutputParameterHandler)
开发者ID:ghjt,项目名称:venom-xbmc-addons-beta,代码行数:35,代码来源:gui.py


示例8: addMovie

    def addMovie(self, sId, sFunction, sLabel, sIcon, sThumbnail, sDesc, oOutputParameterHandler = ''):
        cGui.CONTENT = "movies"
        oGuiElement = cGuiElement()
        oGuiElement.setSiteName(sId)
        oGuiElement.setFunction(sFunction)
        oGuiElement.setTitle(sLabel)
        oGuiElement.setIcon(sIcon)
        oGuiElement.setThumbnail(sThumbnail)
        oGuiElement.setMeta(1)
        oGuiElement.setDescription(sDesc)
        
        self.__createContexMenuWatch(oGuiElement, oOutputParameterHandler)
        self.__createContexMenuWriteFav(oGuiElement, oOutputParameterHandler)
        
        #oInputParameterHandler = cInputParameterHandler()
        #sUrl = oInputParameterHandler.getValue('siteUrl')
        #print oGuiElement.getMediaUrl()

        #context
        oContext = cContextElement()
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('writeFavourites')
        oContext.setTitle('[COLOR teal]Marque-film[/COLOR]')

        oOutputParameterHandler.addParameter('sTitle', sLabel)
        oOutputParameterHandler.addParameter('sId', sId)
        oOutputParameterHandler.addParameter('sFav', sFunction)
        oOutputParameterHandler.addParameter('sCat', 1)
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)
        oGuiElement.addContextItem(oContext)

        self.addFolder(oGuiElement, oOutputParameterHandler)
开发者ID:balazero,项目名称:venom-xbmc-addons,代码行数:34,代码来源:gui.py


示例9: addMisc

    def addMisc(self, sId, sFunction, sLabel, sIcon, sThumbnail, sDesc, oOutputParameterHandler = ''):
        cGui.CONTENT = "files"
        oGuiElement = cGuiElement()
        oGuiElement.setSiteName(sId)
        oGuiElement.setFunction(sFunction)
        oGuiElement.setTitle(sLabel)
        oGuiElement.setIcon(sIcon)
        oGuiElement.setThumbnail(sThumbnail)
        oGuiElement.setMeta(0)
        oGuiElement.getInfoLabel()
        
        oGuiElement.setDescription(sDesc)
        
        self.__createContexMenuWatch(oGuiElement, oOutputParameterHandler)

        #context
        oContext = cContextElement()
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('setFavorite')
        #oContext.setTitle('[COLOR teal]Marque-diver[/COLOR]')
        oContext.setTitle('[COLOR teal]'+cConfig().getLocalizedString(30208)+'[/COLOR]')

        #oOutputParameterHandler.addParameter('sTitle', sLabel)
        oOutputParameterHandler.addParameter('sId', sId)
        oOutputParameterHandler.addParameter('sFav', sFunction)
        oOutputParameterHandler.addParameter('sCat', 5)
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)
        oGuiElement.addContextItem(oContext)
        
        self.addFolder(oGuiElement, oOutputParameterHandler)
开发者ID:ghjt,项目名称:venom-xbmc-addons-beta,代码行数:32,代码来源:gui.py


示例10: createContexMenuDownload

    def createContexMenuDownload(self, oGuiElement, oOutputParameterHandler= '', status = '0'):

        if status == '0':
            oContext = cContextElement()
            oContext.setFile('cDownload')
            oContext.setSiteName('cDownload')
            oContext.setFunction('StartDownloadOneFile')
            oContext.setTitle('Demarrer ce telechargement')
            oContext.setOutputParameterHandler(oOutputParameterHandler)
            oGuiElement.addContextItem(oContext)
        
        if status == '0' or status == '2':
            oContext = cContextElement()
            oContext.setFile('cDownload')
            oContext.setSiteName('cDownload')
            oContext.setFunction('delDownload')
            oContext.setTitle('Supprimer de la liste')
            oContext.setOutputParameterHandler(oOutputParameterHandler)
            oGuiElement.addContextItem(oContext)
            
            oContext = cContextElement()
            oContext.setFile('cDownload')
            oContext.setSiteName('cDownload')
            oContext.setFunction('DelFile')
            oContext.setTitle('[COLOR=red]Supprimer definitivement[/COLOR]')
            oContext.setOutputParameterHandler(oOutputParameterHandler)
            oGuiElement.addContextItem(oContext)  
            
        if status == '1':
            oContext = cContextElement()
            oContext.setFile('cDownload')
            oContext.setSiteName('cDownload')
            oContext.setFunction('StopDownloadList')
            oContext.setTitle('Arreter le telechargement')
            oContext.setOutputParameterHandler(oOutputParameterHandler)
            oGuiElement.addContextItem(oContext)
            
        if status == '2':
            oContext = cContextElement()
            oContext.setFile('cDownload')
            oContext.setSiteName('cDownload')
            oContext.setFunction('ReadDownload')
            oContext.setTitle('Lire')
            oContext.setOutputParameterHandler(oOutputParameterHandler)
            oGuiElement.addContextItem(oContext)            
开发者ID:domtom25,项目名称:venom-xbmc-addons-beta,代码行数:45,代码来源:gui.py


示例11: __createContextMenu

    def __createContextMenu(self, oGuiElement, oListItem, bIsFolder, sItemUrl, oOutputParams=''):
        aContextMenus = []
        if len(oGuiElement.getContextItems()) > 0:
          for oContextItem in oGuiElement.getContextItems():
            oOutputParameterHandler = oContextItem.getOutputParameterHandler()
            sParams = oOutputParameterHandler.getParameterAsUri()                
            sTest = "%s?site=%s&function=%s&%s" % (self.pluginPath, oContextItem.getFile(), oContextItem.getFunction(), sParams)                
            aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s)" % (sTest,),)]

        oContextItem = cContextElement()
        oContextItem.setTitle("Info")
        aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.Action(Info)",)]
        itemValues = oGuiElement.getItemValues()
        if 'imdb_id' in itemValues and 'title' in itemValues:
            metaParams = {} 
            if itemValues['title']:
                metaParams['title'] = itemValues['title']
            if 'mediaType' in itemValues and itemValues['mediaType']:
                metaParams['mediaType'] = itemValues['mediaType']
            elif 'TVShowTitle' in itemValues and itemValues['TVShowTitle']:
                metaParams['mediaType'] = 'tvshow'
            else:
                metaParams['mediaType'] = 'movie'
            if 'season' in itemValues and itemValues['season'] and int(itemValues['season'])>0:
                metaParams['season'] = itemValues['season']
                metaParams['mediaType'] = 'season'
            if ( 'episode' in itemValues and itemValues['episode'] and int(itemValues['episode'])>0
                and 'season' in itemValues and itemValues['season'] and int(itemValues['season']) ):
                metaParams['episode'] = itemValues['episode']
                metaParams['mediaType'] = 'episode'
            if itemValues['imdb_id']:
                metaParams['imdbID'] = itemValues['imdb_id']
                if itemValues['overlay'] == '7':
                    oContextItem.setTitle("Als ungesehen markieren")
                else:
                    oContextItem.setTitle("Als gesehen markieren")
                aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s?function=changeWatched&%s)" % (self.pluginPath, urllib.urlencode(metaParams),),)]
            if 'year' in itemValues and itemValues['year']:
                metaParams['year'] = itemValues['year']
            oContextItem.setTitle("Suche Metainfos")
            aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s?function=updateMeta&%s)" % (self.pluginPath, urllib.urlencode(metaParams),),)]

        if not bIsFolder:
            oContextItem.setTitle("add to Playlist")     
            aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s&playMode=enqueue)" % (sItemUrl,),)]
            oContextItem.setTitle("download")
            aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s&playMode=download)" % (sItemUrl,),)]
            if cConfig().getSetting('jd_enabled') == 'true':
                oContextItem.setTitle("send to JDownloader")
                aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s&playMode=jd)" % (sItemUrl,),)]   
	    if cConfig().getSetting('pyload_enabled') == 'true':
		oContextItem.setTitle("send to PyLoad")     
         	aContextMenus+= [ ( oContextItem.getTitle(), "XBMC.RunPlugin(%s&playMode=pyload)" % (sItemUrl,),)]
        oListItem.addContextMenuItems(aContextMenus)
        #oListItem.addContextMenuItems(aContextMenus, True)  
        return oListItem
开发者ID:Johsnon,项目名称:plugin.video.xstream,代码行数:56,代码来源:gui.py


示例12: CreateSimpleMenu

    def CreateSimpleMenu(self,oGuiElement,oOutputParameterHandler,file,name,function,title):
        oContext = cContextElement()     
        oContext.setFile(file)
        oContext.setSiteName(name)
        oContext.setFunction(function)
        oContext.setTitle(title)
        
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:10,代码来源:gui.py


示例13: createContexMenuEpg

    def createContexMenuEpg(self, oGuiElement, oOutputParameterHandler= ''):

        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName('cGui')
        oContext.setFunction('direct_epg')
        oContext.setTitle('Guide tv direct')
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
        
        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName('cGui')
        oContext.setFunction('soir_epg')
        oContext.setTitle('Guide tv soir')
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:21,代码来源:gui.py


示例14: __createContexMenuDelFav

    def __createContexMenuDelFav(self, oGuiElement, oOutputParameterHandler= ''):

        oContext = cContextElement()
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('delFavourites')
        #oContext.setTitle('[COLOR red]Supprimer Marque-page[/COLOR]')
        oContext.setTitle('[COLOR red]'+cConfig().getLocalizedString(30209)+'[/COLOR]')
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:ghjt,项目名称:venom-xbmc-addons-beta,代码行数:12,代码来源:gui.py


示例15: createContexMenuEpg

    def createContexMenuEpg(self, oGuiElement, oOutputParameterHandler= ''):

        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName('cGui')
        oContext.setFunction('viewepg')
        #oContext.setTitle('[COLOR red]Supprimer Marque-page[/COLOR]')
        oContext.setTitle('[COLOR red]epg[/COLOR]')
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:zombiB,项目名称:venom-xbmc-addons-beta,代码行数:12,代码来源:gui.py


示例16: createContexMenuSimil

    def createContexMenuSimil(self, oGuiElement, oOutputParameterHandler= ''):
        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName(oGuiElement.getSiteName())
        oContext.setFunction('viewsimil')
        oContext.setTitle('[COLOR azure]Recherche Similaire[/COLOR]')

        oOutputParameterHandler = cOutputParameterHandler()
        oOutputParameterHandler.addParameter('sTitle', oGuiElement.getFileName())
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:13,代码来源:gui.py


示例17: createContexMenuFav

    def createContexMenuFav(self, oGuiElement, oOutputParameterHandler= ''):
        oContext = cContextElement()     
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('setFavorite')
        oContext.setTitle('[COLOR teal]Marque-Page[/COLOR]')
        
        oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
        oOutputParameterHandler.addParameter('sFav', oGuiElement.getFunction())
        oOutputParameterHandler.addParameter('sCat', oGuiElement.getCat())
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)  
开发者ID:Peter31h,项目名称:venom-xbmc-addons,代码行数:13,代码来源:gui.py


示例18: __createContexMenuinfo

    def __createContexMenuinfo(self, oGuiElement, oOutputParameterHandler= ''):
        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName(oGuiElement.getSiteName())
        oContext.setFunction('viewinfo')
        oContext.setTitle('[COLOR azure]Information[/COLOR]')

        oOutputParameterHandler = cOutputParameterHandler()
        oOutputParameterHandler.addParameter('sTitle', oGuiElement.getTitle())
        oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:ghjt,项目名称:venom-xbmc-addons-beta,代码行数:14,代码来源:gui.py


示例19: __createContexMenuWatch

    def __createContexMenuWatch(self, oGuiElement, oOutputParameterHandler= ''):
        oContext = cContextElement()
        oContext.setFile('cGui')
        oContext.setSiteName(oGuiElement.getSiteName())
        oContext.setFunction('setWatched')
        oContext.setTitle('[COLOR azure]Marquer vu/Non vu[/COLOR]')

        #oOutputParameterHandler = cOutputParameterHandler()
        #oOutputParameterHandler.addParameter('sTitle', oGuiElement.getTitle())
        #oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)
开发者ID:ghjt,项目名称:venom-xbmc-addons-beta,代码行数:14,代码来源:gui.py


示例20: __createContexMenuDelFav

    def __createContexMenuDelFav(self, oGuiElement, oOutputParameterHandler= ''):

        oContext = cContextElement()
        oContext.setFile('cFav')
        oContext.setSiteName('cFav')
        oContext.setFunction('delFavourites')
        oContext.setTitle('[COLOR red]Supprimer Marque-page[/COLOR]')

        oOutputParameterHandler = cOutputParameterHandler()
        oOutputParameterHandler.addParameter('sTitle', oGuiElement.getTitle())
        oOutputParameterHandler.addParameter('sId', oGuiElement.getSiteName())
        oOutputParameterHandler.addParameter('siteUrl', oGuiElement.getMediaUrl())
      
        oContext.setOutputParameterHandler(oOutputParameterHandler)

        oGuiElement.addContextItem(oContext)           
开发者ID:balazero,项目名称:venom-xbmc-addons,代码行数:16,代码来源:gui.py



注:本文中的resources.lib.gui.contextElement.cContextElement函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python gui.cGui函数代码示例发布时间:2022-05-26
下一篇:
Python text_handler.textHandler函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap