def __init__(self, id, caption, description: Any = None, app: ApplicationHandler = None): Text.__init__(self, caption) self.id = id self.description = description register_signal(self.__class__, ['activate']) self.application = app
def __init__(self, format): Text.__init__(self, '') self.format = format self.info = Text('')
def __init__(self, link, on_select=do_nothing, align='left', wrap='space'): Text.__init__(self, ('unselected', link), align=align, wrap=wrap) self.raw_link = link self.selected = False self.on_select = on_select