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


Python ConfigBaseWidget.runSetup方法代码示例

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


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

示例1: runSetup

# 需要导入模块: from Plugins.Extensions.IPTVPlayer.components.configbase import ConfigBaseWidget [as 别名]
# 或者: from Plugins.Extensions.IPTVPlayer.components.configbase.ConfigBaseWidget import runSetup [as 别名]
 def runSetup(self):
     list = []
     
     list.append(getConfigListEntry(_("Remember last watched position"), config.plugins.iptvplayer.remember_last_position))
     if not self.operatingPlayer:
         list.append(getConfigListEntry(_("External player use software decoder for the AAC"), config.plugins.iptvplayer.aac_software_decode))
         if self.ac3_mix_avaliable:
             list.append(getConfigListEntry(_("AC3 mix mode"), config.plugins.iptvplayer.ac3_mix))
         if self.aac_mix_avaliable:
             list.append(getConfigListEntry(_("AAC mix mode"), config.plugins.iptvplayer.aac_mix))
         
     list.append(getConfigListEntry(_("External player infobar timeout"), config.plugins.iptvplayer.extplayer_infobar_timeout))
     
     if self.aspect_avaliable:
         list.append(getConfigListEntry(_("Default video aspect ratio"), config.plugins.iptvplayer.extplayer_aspect) )
     if self.policy_avaliable:
         list.append(getConfigListEntry(_("Default video policy"), config.plugins.iptvplayer.extplayer_policy) )
     if self.policy2_avaliable:
         list.append(getConfigListEntry(_("Default second video policy"), config.plugins.iptvplayer.extplayer_policy2) )
     
     list.append(getConfigListEntry(_("Load automatically the subtitle from file with the same name"), config.plugins.iptvplayer.extplayer_subtitle_auto_enable) )
     if not self.operatingPlayer:
         list.append(getConfigListEntry(_("Subtitle line wrapping"), config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled) )
     list.append(getConfigListEntry(_("Subtitle font"), config.plugins.iptvplayer.extplayer_subtitle_font) )
     list.append(getConfigListEntry(_("Subtitle font size"), config.plugins.iptvplayer.extplayer_subtitle_font_size) )
     if not config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
         list.append(getConfigListEntry(_("Line Spacing"), config.plugins.iptvplayer.extplayer_subtitle_line_spacing) )
     elif 'transparent' != config.plugins.iptvplayer.extplayer_subtitle_background.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
     
     list.append(getConfigListEntry(_("Subtitle font color"), config.plugins.iptvplayer.extplayer_subtitle_font_color) )
     list.append(getConfigListEntry(_("Subtitle background"), config.plugins.iptvplayer.extplayer_subtitle_background) )
     
     list.append(getConfigListEntry(_("Subtitle box position"), config.plugins.iptvplayer.extplayer_subtitle_pos) )
     if config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         if 'transparent' == config.plugins.iptvplayer.extplayer_subtitle_background.value:
             list.append(getConfigListEntry(_("Subtitle box height"), config.plugins.iptvplayer.extplayer_subtitle_box_height) )
             list.append(getConfigListEntry(_("Subtitle vertical alignment"), config.plugins.iptvplayer.extplayer_subtitle_box_valign) )
     
     if self.subtitle_border_avaliable:
         list.append(getConfigListEntry(_("Subtitle border enabled"), config.plugins.iptvplayer.extplayer_subtitle_border_enabled) )
         if config.plugins.iptvplayer.extplayer_subtitle_border_enabled.value:
             list.append(getConfigListEntry(_("Subtitle border color"), config.plugins.iptvplayer.extplayer_subtitle_border_color) )
             list.append(getConfigListEntry(_("Subtitle border width"), config.plugins.iptvplayer.extplayer_subtitle_border_width) )
             
     list.append(getConfigListEntry(_("Subtitle shadow enabled"), config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled) )
     if config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled.value:
         list.append(getConfigListEntry(_("Subtitle shadow color"), config.plugins.iptvplayer.extplayer_subtitle_shadow_color) )
         list.append(getConfigListEntry(_("Subtitle shadow X offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_xoffset) )
         list.append(getConfigListEntry(_("Subtitle shadow Y offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_yoffset) )
     
     self.list = list
     ConfigBaseWidget.runSetup(self)
开发者ID:a4tech,项目名称:iptvplayer-for-e2,代码行数:56,代码来源:configextmovieplayer.py

示例2: runSetup

# 需要导入模块: from Plugins.Extensions.IPTVPlayer.components.configbase import ConfigBaseWidget [as 别名]
# 或者: from Plugins.Extensions.IPTVPlayer.components.configbase.ConfigBaseWidget import runSetup [as 别名]
 def runSetup(self):
     self.list = []
     ConfigMenu.fillConfigList(self.list, self.isHiddenOptionsUnlocked())
     ConfigBaseWidget.runSetup(self)
开发者ID:samsamsam-iptvplayer,项目名称:iptvplayer-for-e2,代码行数:6,代码来源:iptvconfigmenu.py

示例3: runSetup

# 需要导入模块: from Plugins.Extensions.IPTVPlayer.components.configbase import ConfigBaseWidget [as 别名]
# 或者: from Plugins.Extensions.IPTVPlayer.components.configbase.ConfigBaseWidget import runSetup [as 别名]
 def runSetup(self):
     self.list = self.host.GetConfigList()
     ConfigBaseWidget.runSetup(self)
开发者ID:c0ns0le,项目名称:iptvplayer-for-e2-fork,代码行数:5,代码来源:confighost.py

示例4: runSetup

# 需要导入模块: from Plugins.Extensions.IPTVPlayer.components.configbase import ConfigBaseWidget [as 别名]
# 或者: from Plugins.Extensions.IPTVPlayer.components.configbase.ConfigBaseWidget import runSetup [as 别名]
 def runSetup(self):
     list = []
     list.append(getConfigListEntry(_("show iframe for audio item"), config.plugins.iptvplayer.show_iframe))
     if config.plugins.iptvplayer.show_iframe.value:
         list.append(getConfigListEntry("    " + _("Iframe file"), config.plugins.iptvplayer.iframe_file))
         if 'sh4' != config.plugins.iptvplayer.plarform.value:
             list.append(getConfigListEntry("    " + _("Clear iframe file"), config.plugins.iptvplayer.clear_iframe_file))
     
     list.append(getConfigListEntry(_("Remember last watched position"), config.plugins.iptvplayer.remember_last_position))
     if 1:#IsExecutable(config.plugins.iptvplayer.exteplayer3path.value):
         list.append(getConfigListEntry(_("----------------- External exteplayer3 options -----------------"), config.plugins.iptvplayer.fakeExtePlayer3))
         list.append(getConfigListEntry("    " + _("External player use software decoder for the AAC"), config.plugins.iptvplayer.aac_software_decode))
         if config.plugins.iptvplayer.plarform.value in ['mipsel', 'armv7', 'armv5t', 'i686']:
             list.append(getConfigListEntry("    " + _("External player use software decoder for the DTS"), config.plugins.iptvplayer.dts_software_decode))
             list.append(getConfigListEntry("    " + _("External player use software decoder for the WMA"), config.plugins.iptvplayer.wma_software_decode))
             list.append(getConfigListEntry("    " + _("Software decoding as"), config.plugins.iptvplayer.software_decode_as))
             list.append(getConfigListEntry("    " + _("Stereo downmix mode for software decoder"), config.plugins.iptvplayer.stereo_software_decode))
     if self.ac3_mix_avaliable:
         list.append(getConfigListEntry(_("AC3 mix mode"), config.plugins.iptvplayer.ac3_mix))
     if self.aac_mix_avaliable:
         list.append(getConfigListEntry(_("AAC mix mode"), config.plugins.iptvplayer.aac_mix))
         
     list.append(getConfigListEntry(_("External player infobar timeout"), config.plugins.iptvplayer.extplayer_infobar_timeout))
     
     if self.aspect_avaliable:
         list.append(getConfigListEntry(_("Default video aspect ratio"), config.plugins.iptvplayer.extplayer_aspect) )
     if self.policy_avaliable:
         list.append(getConfigListEntry(_("Default video policy"), config.plugins.iptvplayer.extplayer_policy) )
     if self.policy2_avaliable:
         list.append(getConfigListEntry(_("Default second video policy"), config.plugins.iptvplayer.extplayer_policy2) )
     
     list.append(getConfigListEntry(_("Load automatically the subtitle from file with the same name"), config.plugins.iptvplayer.extplayer_subtitle_auto_enable) )
     list.append(getConfigListEntry(_("Subtitle line wrapping"), config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled) )
     list.append(getConfigListEntry(_("Subtitle font"), config.plugins.iptvplayer.extplayer_subtitle_font) )
     list.append(getConfigListEntry(_("Subtitle font size"), config.plugins.iptvplayer.extplayer_subtitle_font_size) )
     if not config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
         list.append(getConfigListEntry(_("Line Spacing"), config.plugins.iptvplayer.extplayer_subtitle_line_spacing) )
     elif 'transparent' != config.plugins.iptvplayer.extplayer_subtitle_background.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
     
     list.append(getConfigListEntry(_("Subtitle font color"), config.plugins.iptvplayer.extplayer_subtitle_font_color) )
     list.append(getConfigListEntry(_("Subtitle background"), config.plugins.iptvplayer.extplayer_subtitle_background) )
     
     list.append(getConfigListEntry(_("Subtitle box position"), config.plugins.iptvplayer.extplayer_subtitle_pos) )
     if config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         if 'transparent' == config.plugins.iptvplayer.extplayer_subtitle_background.value:
             list.append(getConfigListEntry(_("Subtitle box height"), config.plugins.iptvplayer.extplayer_subtitle_box_height) )
             list.append(getConfigListEntry(_("Subtitle vertical alignment"), config.plugins.iptvplayer.extplayer_subtitle_box_valign) )
     
     if self.subtitle_border_avaliable:
         list.append(getConfigListEntry(_("Subtitle border enabled"), config.plugins.iptvplayer.extplayer_subtitle_border_enabled) )
         if config.plugins.iptvplayer.extplayer_subtitle_border_enabled.value:
             list.append(getConfigListEntry(_("Subtitle border color"), config.plugins.iptvplayer.extplayer_subtitle_border_color) )
             list.append(getConfigListEntry(_("Subtitle border width"), config.plugins.iptvplayer.extplayer_subtitle_border_width) )
             
     list.append(getConfigListEntry(_("Subtitle shadow enabled"), config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled) )
     if config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled.value:
         list.append(getConfigListEntry(_("Subtitle shadow color"), config.plugins.iptvplayer.extplayer_subtitle_shadow_color) )
         list.append(getConfigListEntry(_("Subtitle shadow X offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_xoffset) )
         list.append(getConfigListEntry(_("Subtitle shadow Y offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_yoffset) )
     
     self.list = list
     ConfigBaseWidget.runSetup(self)
开发者ID:friman,项目名称:iptvplayer-for-e2,代码行数:66,代码来源:configextmovieplayer.py


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