def __init__(self, guid, label, parent): assert type(label) == unicode assert (not parent) or isinstance(parent, Tree) self.guid = guid self.label = label self.parent = parent self.render = ItemRender( fonts.get_path('LiberationSerif-Regular'), 27, (2, 0) )
def __init__(self, scroll): query = TextRender( fonts.get_path('LiberationMono-Regular'), 10, (2, 0), True ) term = HighlightTextRender('LiberationMono', 20, (2, 10), scroll) OverlayRender.__init__(self, query, term)
def __init__(self): item = ItemRender(fonts.get_path('LiberationMono-Bold'), 35, (2,0)) item.mode = RENDER_MODE.PRETTY progress = ProgressRender() OverlayRender.__init__(self, item, progress)
def __init__(self, font_name, size, position, scroll): bold_path = fonts.get_path('%s-Bold' % font_name) regular_path = fonts.get_path('%s-Regular' % font_name) TextRender.__init__(self, bold_path, size, position, scroll) self.bold_font = self.font self.regular_font = ImageFont.truetype(regular_path, size)
def __init__(self, guid, label, parent, cm): CmFile.__init__(self, guid, label, parent, cm) self.render = ItemRender( fonts.get_path('LiberationSerif-Regular'), 23, (2, 0) )