1
0
mirror of https://github.com/ihabunek/toot synced 2025-01-11 17:13:58 +01:00
Toot-Mastodon-CLI-TUI-clien.../toot/tui/urwidgets.py

9 lines
331 B
Python
Raw Normal View History

# If urwidgets is loaded use it; otherwise use our stubs
try:
from urwidgets import Hyperlink, TextEmbed, parse_text # noqa: F401
has_urwidgets = True
except ImportError:
from .stub_hyperlink import Hyperlink # noqa: F401
from .stub_text_embed import TextEmbed, parse_text # noqa: F401
has_urwidgets = False