lookatme.widgets.clickable_text module

This module contains code for ClickableText

class lookatme.widgets.clickable_text.ClickableText(markup, *args, **kwargs)[source]

Bases: urwid.widget.Text

Allows clickable/changing text to be part of the Text() contents

mouse_event(size, event, button, x, y, focus)[source]

Handle mouse events!

signals = ['click', 'change']
class lookatme.widgets.clickable_text.LinkIndicatorSpec(link_target, orig_spec, link_type: str = 'link')[source]

Bases: lookatme.widgets.smart_attr_spec.SmartAttrSpec

Used to track a link within an urwid.Text instance

new_for_spec(new_spec)[source]

Create a new LinkIndicatorSpec with the same link information but new AttrSpec