当前位置: 首页>>代码示例>>Python>>正文


Python Addon.show_settings方法代码示例

本文整理汇总了Python中addon.common.addon.Addon.show_settings方法的典型用法代码示例。如果您正苦于以下问题:Python Addon.show_settings方法的具体用法?Python Addon.show_settings怎么用?Python Addon.show_settings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在addon.common.addon.Addon的用法示例。


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

示例1: grbPrm

# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import show_settings [as 别名]
    return param
params=get_params(); url=None; name=None; mode=None; year=None; imdb_id=None
def grbPrm(n):
    try:    return urllib.unquote_plus(params[n])
    except: return ''
url=grbPrm("url"); filetype=grbPrm("filetype"); iconimage=grbPrm("iconimage"); fanart=grbPrm("fanart"); description=grbPrm("description"); name=grbPrm("name"); repourl=grbPrm("repourl"); author=grbPrm("author"); version=grbPrm("version"); 
try:		mode=urllib.unquote_plus(params["mode"])
except: pass
print "Mode: "+str(mode); print "URL: "+str(url); print "Name: "+str(name)
#****************************************************************
#if mode==None or url==None or len(url)<1: STATUSCATS()
if mode==None or url==None or len(url)<1: MAININDEX()
try:
	if url: print url
except: pass
if   mode=='settings':  			addon.show_settings()																		# Settings
elif mode=='autoupdate': 			items=AutoUpdate(url) 																	# 
elif mode=='autoupdate2': 		 																												# Featured
	AutoUpdate(tribeca_url+'featured-addons.php')
	AutoUpdate(tribeca_url+'featured-repos.php')
elif mode=='interrepolist': 			items=List_Inter_Addons(url)	
elif mode=='interlist': 			items=INTERNATIONAL(url)	
elif mode=='innertabs': 			items=List_Addons_Inner_Tabs(name,url)									# Newest / Updated
elif mode=='addonlist': 			items=List_Addons(url)																	# List Addons
elif mode=='worldlist': 			items=List_Tribeca_WorldList(url)												# World Addons - Temp
elif mode=='toprepolist': 		items=List_Repo_Top_Developers(url)											# Top Devs
elif mode=='searchaddon': 		SEARCHADDON(url)																				# Search
elif mode=='addonindex': 			ADDONINDEX(name,url,filetype)														# Right Before Installing Addon(s)
elif mode=='addoninstall': 		ADDONINSTALL(name,url,description,filetype,repourl)			# Installing Addon(s)
elif mode=='adultlist': 			items=List_Tribeca_Adult(url)														# Adult Addons - Temp
elif mode=='WizardTypeInstaller': 	WizardTypeInstaller(name,url)											# 
开发者ID:bialagary,项目名称:mw,代码行数:33,代码来源:defaultORIG.py

示例2: get_movies

# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import show_settings [as 别名]
if mode==3:
    get_movies(url)
	
if mode==4:
	get_genre()

if mode==1:
	get_latest()
	
if mode==2:
	get_letters()
	
if mode==11:
	get_search_movies()
	
if mode==21:
	get_free_movies()
	
if mode==22:
	star_studded()

if mode==23:
	get_star_movies()
	
if mode==91:
    addon.show_settings()
	
s.close()
	
xbmcplugin.endOfDirectory(int(sys.argv[1]))
开发者ID:YoColdRain,项目名称:ErosNow-Rain,代码行数:32,代码来源:default.py

示例3: RefreshList

# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import show_settings [as 别名]
def RefreshList(): xbmc.executebuiltin("XBMC.Container.Refresh")
def log(msg): xbmc.log("### [%s] - %s" % (__scriptname__,msg,),level=xbmc.LOGDEBUG )
_debugging=True
def WhereAmI(t): ### for Writing Location Data to log file ###
	if (_debugging==True): print 'Where am I:  '+t
def deb(s,t): ### for Writing Debug Data to log file ###
	if (_debugging==True): print s+':  '+t
def debob(t): ### for Writing Debug Object to log file ###
	if (_debugging==True): print t

# ===================================================================
# --- Mode Functions
# ===================================================================


def Main(): eod()


def ShowSettingWindow(): print "Showing Addon Settings."; addon.show_settings(); 



# ===================================================================
# --- Mode Controls
# ===================================================================
def check_mode(mode='',site='',section='',url=''):
	deb('param >> Mode',mode); 
	if (mode=='') or (mode=='main') or (mode=='MainMenu') or (__name__=='__main__'): Main(); ShowSettingWindow(); 
	#
	###
check_mode(addpr('mode',''),addpr('site',''),addpr('section',''),addpr('url',''))
开发者ID:070499,项目名称:service.lan.ftp,代码行数:33,代码来源:default.py


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