本文整理汇总了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