def __init__(self, session, epgConfig, selChangedCB=None): EPGListBase.__init__(self, session, selChangedCB) self.epgConfig = epgConfig self.eventFontName = "Regular" self.eventFontSize = applySkinFactor(18) self.l.setBuildFunc(self.buildEntry)
def __init__(self, session, epgConfig, selChangedCB=None): EPGListBase.__init__(self, session, selChangedCB) self.epgConfig = epgConfig self.eventFontName = "Regular" self.eventFontSize = 28 if self.isFullHd else 20 self.l.setBuildFunc(self.buildEntry)
def applySkin(self, desktop, screen): if self.skinAttributes is not None: attribs = [] for (attrib, value) in self.skinAttributes: if attrib in ('EventFontSingle', 'EventFontMulti', 'EventFont'): font = parseFont(value, ((1, 1), (1, 1))) self.eventFontName = font.family self.eventFontSize = font.pointSize else: attribs.append((attrib, value)) self.skinAttributes = attribs return EPGListBase.applySkin(self, desktop, screen)
def setItemsPerPage(self): EPGListBase.setItemsPerPage(self, 32)