Exemple #1
0
	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)
	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()
Exemple #3
0
	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]))
 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()
	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()
Exemple #6
0
	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
Exemple #7
0
 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]))
	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()
	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)
Exemple #10
0
 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()
 def __init__(self, list=None, enableWrapAround=False):
     MenuList.__init__(self,
                       list or [],
                       enableWrapAround,
                       content=eListboxPythonMultiContent)
     self.l.setFont(0, gFont("Regular", 20))
     self.l.setFont(1, gFont("Regular", 28))
     self.l.setItemHeight(30)
Exemple #12
0
	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()
Exemple #13
0
	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()
	def __init__(self, list, enableWrapAround = False):
		MenuList.__init__(self, list, 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", 20))
			self.l.setItemHeight(32)
Exemple #15
0
	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
Exemple #16
0
 def __init__(self, list=None, enableWrapAround=False):
     MenuList.__init__(self,
                       list or [],
                       enableWrapAround,
                       content=eListboxPythonMultiContent)
     font = skin.fonts.get("SelectionList", ("Regular", 20, 30))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
Exemple #17
0
 def __init__(self, list, 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.PARENTAL_CONTROL_LIST, 32)
     self.l.setItemHeight(itemHeight)
Exemple #18
0
 def __init__(self, list, selection=0, enableWrapAround=False):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     font = skin.fonts.get("ChoiceList", ("Regular", 20, 30))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
     self.ItemHeight = font[2]
     self.selection = selection
Exemple #19
0
 def __init__(self, list, enableWrapAround=False):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     font, size = skin.parameters.get("PluginListFont1", ('Regular', 20))
     self.l.setFont(0, gFont(font, size))
     font, size = skin.parameters.get("PluginListFont2", ('Regular', 14))
     self.l.setFont(1, gFont(font, size))
     self.l.setItemHeight(
         int(skin.parameters.get("PluginListItemHeight", (50, ))[0]))
Exemple #20
0
 def __init__(self, list=None, enableWrapAround=False):
     MenuList.__init__(self,
                       list or [],
                       enableWrapAround,
                       content=eListboxPythonMultiContent)
     font, size = skin.parameters.get("SelectionListFont", ('Regular', 20))
     self.l.setFont(0, gFont(font, size))
     self.l.setItemHeight(
         int(skin.parameters.get("SelectionListItemHeight", (30, ))[0]))
Exemple #21
0
    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
Exemple #22
0
 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()
Exemple #23
0
 def __init__(self, list=None, enableWrapAround=False):
     MenuList.__init__(self,
                       list or [],
                       enableWrapAround,
                       content=eListboxPythonMultiContent)
     tlf = TemplatedListFonts()
     self.l.setFont(0, gFont(tlf.face(tlf.BIG), tlf.size(tlf.BIG)))
     itemHeight = componentSizes.itemHeight(componentSizes.SELECTION_LIST,
                                            30)
     self.l.setItemHeight(itemHeight)
Exemple #24
0
 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()
 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)
	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)
			
Exemple #27
0
 def __init__(self, list, enableWrapAround=True):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     font = skin.fonts.get(
         "PluginBrowser0",
         ("Regular", skin.applySkinFactor(20), skin.applySkinFactor(50)))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
     font = skin.fonts.get("PluginBrowser1",
                           ("Regular", skin.applySkinFactor(16)))
     self.l.setFont(1, gFont(font[0], font[1]))
Exemple #28
0
	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()
Exemple #29
0
 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)
Exemple #30
0
	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")),
		]
Exemple #31
0
	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")),
		]
Exemple #32
0
 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'))]
	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
	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")),
		]
Exemple #35
0
 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
Exemple #36
0
 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'))]
Exemple #37
0
	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)
		self.l.setFont(0, gFont("Regular", 18))
		self.l.setItemHeight(23)
		self.serviceHandler = eServiceCenter.getInstance()
Exemple #38
0
    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()
Exemple #39
0
	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()
Exemple #40
0
	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()
Exemple #41
0
 def __init__(self, list = None, enableWrapAround = False):
     MenuList.__init__(self, list or [], enableWrapAround, content=eListboxPythonMultiContent)
     font = skin.fonts.get('SelectionList', ('Regular', 20, 30))
     self.l.setFont(0, gFont(font[0], font[1]))
     self.l.setItemHeight(font[2])
	def __init__(self, list, enableWrapAround = False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		font, size = skin.parameters.get("ParentalControlListFont", ('Regular', 20))
		self.l.setFont(0, gFont(font, size))
		self.l.setItemHeight(int(skin.parameters.get("ParentalControlListItemHeight", (32,))[0]))
Exemple #43
0
	def __init__(self, list, selection = 0, enableWrapAround=False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setItemHeight(25)
		self.selection = selection
Exemple #44
0
	def __init__(self, list, selection = 0, enableWrapAround=False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		font, size = skin.parameters.get("ChoicelistFont", ('Regular',20))
		self.l.setFont(0, gFont(font, size))
		self.l.setItemHeight(int(skin.parameters.get("ChoicelistItemHeight", (25,))[0]))
		self.selection = selection
Exemple #45
0
	def __init__(self, list = None, enableWrapAround = False):
		MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent)
		tlf = TemplatedListFonts()
		self.l.setFont(0, gFont(tlf.face(tlf.BIG), tlf.size(tlf.BIG)))
		itemHeight = componentSizes.itemHeight(componentSizes.SELECTION_LIST, 30)
		self.l.setItemHeight(itemHeight)
 def __init__(self, list, enableWrapAround=False):
     MenuList.__init__(self, list, enableWrapAround,
                       eListboxPythonMultiContent)
     self.l.setFont(0, gFont("Regular", 20))
     self.l.setItemHeight(32)
	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)
Exemple #48
0
	def __init__(self, list, enableWrapAround = False):
		MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
		font = skin.fonts.get("ParentalControlList", ("Regular", 20, 32))
		self.l.setFont(0, gFont(font[0], font[1]))
		self.l.setItemHeight(font[2])