def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) self.piconLoader = PiconLoader() sizes = componentSizes[EPGList.SKIN_COMPONENT_KEY] self._iconWidth = sizes.get(EPGList.SKIN_COMPONENT_ICON_WIDTH, 21) self._iconHeight = sizes.get(EPGList.SKIN_COMPONENT_ICON_HEIGHT, 21) self._iconHPos = sizes.get(EPGList.SKIN_COMPONENT_ICON_HPOS, 4) self._itemMargin = sizes.get(EPGList.SKIN_COMPONENT_ITEM_MARGIN, 10) servicelist_sizes = componentSizes["ServiceList"] self._picon_width = servicelist_sizes.get(ServiceList.KEY_PICON_WIDTH, 58) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.remote_clock_pixmap = LoadPixmap( '/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock.png' ) self.remote_clock_add_pixmap = LoadPixmap( '/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_add.png' ) self.remote_clock_pre_pixmap = LoadPixmap( '/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_pre.png' ) self.remote_clock_post_pixmap = LoadPixmap( '/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_post.png' ) self.remote_clock_prepost_pixmap = LoadPixmap( '/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_prepost.png' )
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.partnerbox_clocks = [ LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearchicons/epgclock_add.png')), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_pre.png')), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock.png')), LoadPixmap( cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_prepost.png')), LoadPixmap( cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_post.png')), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, 'Extensions/EPGSearchicons/epgclock_add.png')) ]
def __init__(self, type=EPG_TYPE_MULTI, selChangedCB=None, timer = None, hasChannelInfo=True): EPGList.__init__(self, type, selChangedCB, timer) sizes = componentSizes[EasyInfoEventList.SKIN_COMPONENT_KEY] self.channelWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_CHANNEL_WIDTH, 120) self.timeWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_TIME_WIDTH, 70) self.timeIndicatorWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_TIME_FUTURE_INDICATOR_WIDTH, 10) self.eventNameWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_EVENTNAME_WIDTH, 460) self.eventNameYOffset = sizes.get(EasyInfoEventList.SKIN_COMPONENT_EVENTNAME_OFFSET, 1) self.timeYOffset = sizes.get(EasyInfoEventList.SKIN_COMPONENT_TIME_OFFSET, 3) self.itemHeight = sizes.get(EasyInfoEventList.SKIN_COMPONENT_ITEM_HEIGHT, 50) self.recOffset = sizes.get(EasyInfoEventList.SKIN_COMPONENT_REC_OFFSET, 25) self.channelOffset = sizes.get(EasyInfoEventList.SKIN_COMPONENT_CHANNEL_OFFSET, 120) self.progressBarWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_PROGRESSBAR_WIDTH, 40) self.progressBarHeight = sizes.get(EasyInfoEventList.SKIN_COMPONENT_PROGRESSBAR_HEIGHT, 8) self.remainingTimeWidth = sizes.get(EasyInfoEventList.SKIN_COMPONENT_REMAINING_TIME_WIDTH, 70) self.recIconSize = sizes.get(EasyInfoEventList.SKIN_COMPONENT_REC_ICON_SIZE, 16) self.piconWidth = 0 self.piconHeight = 0 tlf = TemplatedListFonts() self.l.setFont(0, gFont(tlf.face(tlf.MEDIUM), tlf.size(tlf.MEDIUM))) self.l.setFont(1, gFont(tlf.face(tlf.SMALL), tlf.size(tlf.SMALL))) self.l.setFont(2, gFont(tlf.face(tlf.SMALLER), tlf.size(tlf.SMALLER))) self.l.setItemHeight(self.itemHeight) self.l.setBuildFunc(self.buildMultiEntry) self.hasChannelInfo = hasChannelInfo self.nameCache = { }
def __init__(self, type=EPG_TYPE_MULTI, selChangedCB=None, timer = None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setFont(0, gFont("Regular", 20)) self.l.setFont(1, gFont("Regular", 18)) self.l.setItemHeight(50) self.l.setBuildFunc(self.buildMultiEntry) self.breite = 200 MyPiconPath = "/"
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.remote_clock_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock.png') self.remote_clock_add_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_add.png') self.remote_clock_pre_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_pre.png') self.remote_clock_post_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_post.png') self.remote_clock_prepost_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_prepost.png')
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer = None): EPGList.__init__(self, type, selChangedCB, timer) tlf = TemplatedListFonts() self.l.setFont(0, gFont(tlf.face(tlf.SMALL), tlf.size(tlf.SMALL))) self.PTpicture = LoadPixmap(cached=True, path="/usr/lib/enigma2/python/Plugins/Extensions/MerlinEPG/primetime.png") self.evCnt = 0 sizes = componentSizes[MerlinEPGList.SKIN_COMPONENT_KEY] self._textHeight = sizes.get(MerlinEPGList.SKIN_COMPONENT_TEXT_HEIGHT, 40) self._iconWidth = sizes.get(MerlinEPGList.SKIN_COMPONENT_ICON_WIDTH, 21) self._iconHeight = sizes.get(MerlinEPGList.SKIN_COMPONENT_ICON_HEIGHT, 21) self._itemMargin = sizes.get(MerlinEPGList.SKIN_COMPONENT_ITEM_MARGIN, 100)
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.partnerbox_clocks = [ LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearchicons/epgclock_add.png')), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_pre.png')), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock.png')), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_prepost.png')), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearch/icons/epgclock_post.png')), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, 'Extensions/EPGSearchicons/epgclock_add.png'))]
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) if config.plugins.epgsearch.picons.value: self.l.setItemHeight(34) self.l.setFont(1, gFont("Regular", 18)) self.l.setBuildFunc(self.buildEPGSearchEntry) self.picon = ePicLoad() self.iconSize = 21 self.iconDistance = 2 self.nextIcon = self.iconSize + 2 * self.iconDistance self.colGap = 10 self.skinColumns = False self.tw = 90 self.dy = 0 self.piconSize = 50,30 self.piconDistance = 5 self.pboxDistance = 80 def loadPixmap(name): pixmap = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/%s" % name)) if pixmap is None: pixmap = LoadPixmap("/usr/lib/enigma2/python/Plugins/Extensions/EPGSearch/icons/%s" % name) return pixmap if PartnerBoxIconsEnabled: self.remote_clock_pixmap = loadPixmap("remote_epgclock.png") self.remote_clock_add_pixmap = loadPixmap("remote_epgclock_add.png") self.remote_clock_pre_pixmap = loadPixmap("remote_epgclock_pre.png") self.remote_clock_post_pixmap = loadPixmap("remote_epgclock_post.png") self.remote_clock_prepost_pixmap = loadPixmap("remote_epgclock_prepost.png") if PartnerBoxZapRepIcons: self.remote_zapclock_pixmap = loadPixmap("remote_zapclock.png") self.remote_zapclock_add_pixmap = loadPixmap("remote_zapclock_add.png") self.remote_zapclock_pre_pixmap = loadPixmap("remote_zapclock_pre.png") self.remote_zapclock_post_pixmap = loadPixmap("remote_zapclock_post.png") self.remote_zapclock_prepost_pixmap = loadPixmap("remote_zapclock_prepost.png") self.remote_repclock_pixmap = loadPixmap("remote_repepgclock.png") self.remote_repclock_add_pixmap = loadPixmap("remote_repepgclock_add.png") self.remote_repclock_pre_pixmap = loadPixmap("remote_repepgclock_pre.png") self.remote_repclock_post_pixmap = loadPixmap("remote_repepgclock_post.png") self.remote_repclock_prepost_pixmap = loadPixmap("remote_repepgclock_prepost.png") self.remote_repzapclock_pixmap = loadPixmap("remote_repzapclock.png") self.remote_repzapclock_add_pixmap = loadPixmap("remote_repzapclock_add.png") self.remote_repzapclock_pre_pixmap = loadPixmap("remote_repzapclock_pre.png") self.remote_repzapclock_post_pixmap = loadPixmap("remote_repzapclock_post.png") self.remote_repzapclock_prepost_pixmap = loadPixmap("remote_repzapclock_prepost.png")
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) self.clock_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock.png')) self.clock_add_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_add.png')) self.clock_pre_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_pre.png')) self.clock_post_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_post.png')) self.clock_prepost_pixmap = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, 'skin_default/icons/epgclock_prepost.png')) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.remote_clock_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock.png') self.remote_clock_add_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_add.png') self.remote_clock_pre_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_pre.png') self.remote_clock_post_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_post.png') self.remote_clock_prepost_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_prepost.png')
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.listSizeWidth = None self.screenwidth = getDesktop(0).size().width() if self.screenwidth and self.screenwidth == 1920: self.posx, self.posy, self.picx, self.picy, self.gap = skinparameter.get( "EpgListIcon", (2, 13, 25, 25, 2)) else: self.posx, self.posy, self.picx, self.picy, self.gap = skinparameter.get( "EpgListIcon", (1, 11, 23, 23, 1)) self.l.setBuildFunc(self.buildEPGSearchEntry) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.partnerbox_clocks = [ LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_add.png")), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_pre.png")), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock.png")), LoadPixmap( cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_prepost.png")), LoadPixmap( cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_post.png")), LoadPixmap(cached=True, path=resolveFilename( SCOPE_PLUGINS, "Extensions/EPGSearchicons/epgclock_add.png")) ]
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.listSizeWidth = None self.screenwidth = getDesktop(0).size().width() if self.screenwidth and self.screenwidth == 1920: self.posx, self.posy , self.picx, self.picy, self.gap = skinparameter.get("EpgListIcon", (2,13,25,25,2)) else: self.posx, self.posy , self.picx, self.picy, self.gap = skinparameter.get("EpgListIcon", (1,11,23,23,1)) self.l.setBuildFunc(self.buildEPGSearchEntry) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.partnerbox_clocks = [ LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_add.png")), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_pre.png")), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock.png")), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_prepost.png")), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearch/icons/epgclock_post.png")), LoadPixmap(cached=True, path=resolveFilename(SCOPE_PLUGINS, "Extensions/EPGSearchicons/epgclock_add.png")) ]
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry) self.piconLoader = PiconLoader() sizes = componentSizes[EPGList.SKIN_COMPONENT_KEY] self._iconWidth = sizes.get(EPGList.SKIN_COMPONENT_ICON_WIDTH, 21) self._iconHeight = sizes.get(EPGList.SKIN_COMPONENT_ICON_HEIGHT, 21) self._iconHPos = sizes.get(EPGList.SKIN_COMPONENT_ICON_HPOS, 4) self._itemMargin = sizes.get(EPGList.SKIN_COMPONENT_ITEM_MARGIN, 10) servicelist_sizes = componentSizes["ServiceList"] self._picon_width = servicelist_sizes.get(ServiceList.KEY_PICON_WIDTH, 58) if PartnerBoxIconsEnabled: # Partnerbox Clock Icons self.remote_clock_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock.png') self.remote_clock_add_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_add.png') self.remote_clock_pre_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_pre.png') self.remote_clock_post_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_post.png') self.remote_clock_prepost_pixmap = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/Partnerbox/icons/remote_epgclock_prepost.png')
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGSearchList.__init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None) EPGList.__init__(self, type, selChangedCB, timer) self.l.setBuildFunc(self.buildEPGSearchEntry)
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer = None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setFont(0, gFont("Regular", 18)) self.PTpicture = LoadPixmap(cached=True, path="/usr/lib/enigma2/python/Plugins/Extensions/MerlinEPG/primetime.png") self.evCnt = 0
def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None): EPGList.__init__(self, type, selChangedCB, timer) self.l.setFont(0, gFont("Regular", 18)) self.PTpicture = LoadPixmap(cached=True, path="/usr/lib/enigma2/python/Plugins/Extensions/MerlinEPG/primetime.png") self.evCnt = 0