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


Python ConfigSubsection.typeSubtitles方法代码示例

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


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

示例1: new

# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import typeSubtitles [as 别名]

#.........这里部分代码省略.........
							("7","7"),
							("8","8"),
							("9","9"),
							("10","10"),
							("11","11"),
							("12","12"),
							("13","13"),
							("14","14"),
							("15","15")
							],"-1"),
				 "language": ConfigSelection([
							("---", "None"),
							("ara", "Arabic"),
							("baq", "Basque"),
							("hrv", "Croatian"),
							("cze", "Czech"),
							("dan", "Danish"),
							("dut", "Dutch"),
							("eng", "English"),
							("est", "Estonian"),
							("fin", "Finnish"),
							("fra", "French"),
							("ger", "German"),
							("gre", "Greek"),
							("hun", "Hungarian"),
							("ita", "Italian"),
							("lat", "Latvian"),
							("lit", "Lithuanian"),
							("nob", "Norwegian"),
							("pol", "Polish"),
							("por", "Portuguese"),
							("fas", "Persian"),
							("ron", "Romanian"),
							("rus", "Russian"),
							("srp", "Serbian"),
							("slk", "Slovak"),
							("slv", "Slovenian"),
							("spa", "Spanish"),
							("swe", "Swedish"),
							("tur", "Turkish")
							],"---")
				}, newServerConfigSubsection.langInputType.value)
		newServerConfigSubsection.typeSubtitles = ConfigMutable(
				{"track": ConfigSelection([
							("-1","-1"),
							("0","0"),
							("1","1"),
							("2","2"),
							("3","3"),
							("4","4"),
							("5","5"),
							("6","6"),
							("7","7"),
							("8","8"),
							("9","9"),
							("10","10"),
							("11","11"),
							("12","12"),
							("13","13"),
							("14","14"),
							("15","15")
							],"-1"),
				 "language": ConfigSelection([
							("---", "None"),
							("ara", "Arabic"),
							("baq", "Basque"),
							("hrv", "Croatian"),
							("cze", "Czech"),
							("dan", "Danish"),
							("dut", "Dutch"),
							("eng", "English"),
							("est", "Estonian"),
							("fin", "Finnish"),
							("fra", "French"),
							("ger", "German"),
							("gre", "Greek"),
							("hun", "Hungarian"),
							("ita", "Italian"),
							("lat", "Latvian"),
							("lit", "Lithuanian"),
							("nob", "Norwegian"),
							("pol", "Polish"),
							("por", "Portuguese"),
							("fas", "Persian"),
							("ron", "Romanian"),
							("rus", "Russian"),
							("srp", "Serbian"),
							("slk", "Slovak"),
							("slv", "Slovenian"),
							("spa", "Spanish"),
							("swe", "Swedish"),
							("tur", "Turkish")
							],"---")
				}, newServerConfigSubsection.langInputType.value)

		newServer = VlcServer(newServerConfigSubsection)

		self.serverlist.append(newServer)

		return newServer
开发者ID:68foxboris,项目名称:enigma2-plugins,代码行数:104,代码来源:VlcServerConfig.py


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