本文整理汇总了Python中MenuList.MenuList类的典型用法代码示例。如果您正苦于以下问题:Python MenuList类的具体用法?Python MenuList怎么用?Python MenuList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MenuList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, list, selection = 0, enableWrapAround=False):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
font = skin.fonts["ChoiceList"]
self.l.setFont(0, gFont(font[0], font[1]))
self.l.setItemHeight(font[2])
self.ItemHeight = font[2]
self.selection = selection
开发者ID:fccandido,项目名称:enigma2,代码行数:7,代码来源:ChoiceList.py
示例2: __init__
def __init__(self, list, enableWrapAround=True):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
font = skin.fonts.get("PluginBrowser0", ("Regular", 20, 50))
self.l.setFont(0, gFont(font[0], font[1]))
self.l.setItemHeight(font[2])
font = skin.fonts.get("PluginBrowser1", ("Regular", 14))
self.l.setFont(1, gFont(font[0], font[1]))
开发者ID:openhdf,项目名称:enigma2,代码行数:7,代码来源:PluginList.py
示例3: __init__
def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = False, additionalExtensions = None):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.additional_extensions = additionalExtensions
self.mountpoints = []
self.current_directory = None
self.current_mountpoint = None
self.useServiceRef = useServiceRef
self.showDirectories = showDirectories
self.showMountpoints = showMountpoints
self.showFiles = showFiles
self.isTop = isTop
# example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
self.matchingPattern = matchingPattern
self.inhibitDirs = inhibitDirs or []
self.inhibitMounts = inhibitMounts or []
self.refreshMountpoints()
self.changeDir(directory)
if config.skin.xres.value == 1920:
self.l.setFont(0, gFont("Regular", 26))
self.l.setItemHeight(35)
else:
self.l.setFont(0, gFont("Regular", 18))
self.l.setItemHeight(23)
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:fairbird,项目名称:Blackhole-OpenATV,代码行数:25,代码来源:FileList.py
示例4: __init__
def __init__(self, list, enableWrapAround=True):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 14))
self.l.setFont(2, gFont("Regular", 32))
self.l.setFont(3, gFont("Regular", 24))
self.l.setItemHeight(50)
开发者ID:popazerty,项目名称:e2-gui,代码行数:7,代码来源:PluginList.py
示例5: __init__
def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = False, additionalExtensions = None):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.additional_extensions = additionalExtensions
self.mountpoints = []
self.current_directory = None
self.current_mountpoint = None
self.useServiceRef = useServiceRef
self.showDirectories = showDirectories
self.showMountpoints = showMountpoints
self.showFiles = showFiles
if isTop:
self.topDirectory = directory
else:
self.topDirectory = "/"
# example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
if matchingPattern:
self.matchingPattern = re.compile(matchingPattern)
else:
self.matchingPattern = None
self.inhibitDirs = inhibitDirs or []
self.inhibitMounts = inhibitMounts or []
self.refreshMountpoints()
self.changeDir(directory)
font = skin.fonts.get("FileList", ("Regular", 18, 23))
self.l.setFont(0, gFont(font[0], font[1]))
self.l.setItemHeight(font[2])
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:Atsilla,项目名称:enigma2-openpli-fulan,代码行数:28,代码来源:FileList.py
示例6: __init__
def __init__(self, enableWrapAround=False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 18))
self.l.setItemHeight(23)
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:openpli-arm,项目名称:enigma2-arm,代码行数:7,代码来源:MediaPlayer.py
示例7: __init__
def __init__(self, list, selection = 0, enableWrapAround=False):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
tlf = TemplatedListFonts()
self.l.setFont(0, gFont(tlf.face(tlf.BIG), tlf.size(tlf.BIG)))
itemHeight = componentSizes.itemHeight(componentSizes.CHOICELIST, 30)
self.l.setItemHeight(itemHeight)
self.selection = selection
开发者ID:OpenDMM,项目名称:enigma2,代码行数:8,代码来源:ChoiceList.py
示例8: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
tlf = TemplatedListFonts()
self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM)))
self.l.setItemHeight(componentSizes.itemHeight(self.SKIN_COMPONENT_KEY, 23))
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:OpenDMM,项目名称:enigma2,代码行数:8,代码来源:MediaPlayer.py
示例9: __init__
def __init__(self, list = None, enableWrapAround = False):
MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent)
if config.skin.xres.value == 1920:
self.l.setFont(0, gFont("Regular", 26))
self.l.setItemHeight(40)
else:
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(30)
开发者ID:fairbird,项目名称:Blackhole-OpenATV,代码行数:8,代码来源:SelectionList.py
示例10: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
font, size = skin.parameters.get("MediaPlayerPlayListFont", ('Regular', 18))
self.l.setFont(0, gFont(font, size))
self.l.setItemHeight(23)
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:kingvuplus,项目名称:test2,代码行数:8,代码来源:MediaPlayer.py
示例11: __init__
def __init__(self, list, enableWrapAround=True):
if getDesktop(0).size().width() == 1920:
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 28))
self.l.setFont(1, gFont("Regular", 22))
self.l.setItemHeight(60)
else:
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 14))
self.l.setItemHeight(50)
开发者ID:schleichdi2,项目名称:OpenNfr_E2_Gui-5.3,代码行数:11,代码来源:PluginList.py
示例12: __init__
def __init__(self, list, enableWrapAround=False):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
if config.skin.xres.value == 1920:
self.l.setFont(0, gFont("Regular", 32))
self.l.setFont(1, gFont("Regular", 22))
self.l.setItemHeight(75)
else:
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 14))
self.l.setItemHeight(50)
开发者ID:fairbird,项目名称:Blackhole-OpenATV,代码行数:10,代码来源:PluginList.py
示例13: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
# if config.skin.xres.value == 1920:
# self.l.setFont(0, gFont("Regular", 28))
# self.l.setItemHeight(35)
# else:
self.l.setFont(0, gFont("Regular", 18))
self.l.setItemHeight(23)
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:kingvuplus,项目名称:other,代码行数:11,代码来源:MediaPlayer.py
示例14: __init__
def __init__(self, list, selection = 0, enableWrapAround=False):
if getDesktop(0).size().width() == 1920:
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
font = skin.fonts["ChoiceList"]
self.l.setFont(0, gFont("Regular", 28))
self.l.setFont(1, gFont("Regular", 22))
self.l.setItemHeight(font[2])
self.selection = selection
else:
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
font = skin.fonts["ChoiceList"]
self.l.setFont(0, gFont(font[0], font[1]))
self.l.setItemHeight(font[2])
self.selection = selection
开发者ID:schleichdi2,项目名称:OpenNfr_E2_Gui-5.3,代码行数:14,代码来源:ChoiceList.py
示例15: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
font = skin.fonts.get('PlayList', ('Regular', 18, 23))
self.l.setFont(0, gFont(font[0], font[1]))
self.l.setItemHeight(font[2])
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
self.state = STATE_NONE
self.icons = [LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_play.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_pause.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_stop.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_rewind.png')),
LoadPixmap(path=resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_forward.png'))]
开发者ID:sodo13,项目名称:EG-gui,代码行数:14,代码来源:MediaPlayer.py
示例16: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 18))
self.l.setItemHeight(23)
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
self.icons = [
LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_mp_play.png")),
LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_mp_pause.png")),
LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_mp_stop.png")),
LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_mp_rewind.png")),
LoadPixmap(path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/ico_mp_forward.png")),
]
开发者ID:bally12345,项目名称:enigma2,代码行数:14,代码来源:MediaPlayer.py
示例17: __init__
def __init__(self, enableWrapAround = False):
MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
screenwidth = getDesktop(0).size().width()
if screenwidth and screenwidth == 1920:
self.l.setFont(0, gFont('Regular', 30))
self.l.setItemHeight(40)
else:
self.l.setFont(0, gFont('Regular', 18))
self.l.setFont(0, gFont('Regular', 18))
self.l.setItemHeight(23)
self.currPlaying = -1
self.oldCurrPlaying = -1
self.serviceHandler = eServiceCenter.getInstance()
self.state = STATE_NONE
self.icons = [LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_play.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_pause.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_stop.png')),
LoadPixmap(resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_rewind.png')),
LoadPixmap(path=resolveFilename(SCOPE_ACTIVE_SKIN, 'icons/ico_mp_forward.png'))]
开发者ID:kingvuplus,项目名称:boom,代码行数:19,代码来源:MediaPlayer.py
示例18: __init__
def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = False, additionalExtensions = None):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.additional_extensions = additionalExtensions
self.mountpoints = []
self.current_directory = None
self.current_mountpoint = None
self.useServiceRef = useServiceRef
self.showDirectories = showDirectories
self.showMountpoints = showMountpoints
self.showFiles = showFiles
self.isTop = isTop
# example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
self.matchingPattern = matchingPattern
self.inhibitDirs = inhibitDirs or []
self.inhibitMounts = inhibitMounts or []
self.refreshMountpoints()
self.changeDir(directory)
font, size = skin.parameters.get("FileListFont", ('Regular', 18))
self.l.setFont(0, gFont(font, size))
self.l.setItemHeight(int(skin.parameters.get("FileListItemHeight", (23,))[0]))
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:kingvuplus,项目名称:test2,代码行数:22,代码来源:FileList.py
示例19: __init__
def __init__(self, directory, showDirectories = True, showFiles = True, showMountpoints = True, matchingPattern = None, useServiceRef = False, inhibitDirs = False, inhibitMounts = False, isTop = False, enableWrapAround = False, additionalExtensions = None):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.additional_extensions = additionalExtensions
self.mountpoints = []
self.current_directory = None
self.current_mountpoint = None
self.useServiceRef = useServiceRef
self.showDirectories = showDirectories
self.showMountpoints = showMountpoints
self.showFiles = showFiles
self.isTop = isTop
# example: matching .nfi and .ts files: "^.*\.(nfi|ts)"
self.matchingPattern = matchingPattern
self.inhibitDirs = inhibitDirs or []
self.inhibitMounts = inhibitMounts or []
self.refreshMountpoints()
self.changeDir(directory)
tlf = TemplatedListFonts()
self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM)))
itemHeight = componentSizes.itemHeight(componentSizes.FILE_LIST, 25)
self.l.setItemHeight(itemHeight)
self.serviceHandler = eServiceCenter.getInstance()
开发者ID:popazerty,项目名称:12,代码行数:24,代码来源:FileList.py
示例20: __init__
def __init__(self, list = None, enableWrapAround = False):
MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(30)
开发者ID:Ophiuchus1312,项目名称:enigma2-master,代码行数:4,代码来源:SelectionList.py
注:本文中的MenuList.MenuList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论