Implement basic AttributedLinesWidget

This commit is contained in:
Joscha 2019-05-28 11:17:58 +00:00
parent 66a67f3f28
commit 32bc9af2d8
3 changed files with 217 additions and 14 deletions

View file

@ -52,14 +52,6 @@ class AttributedTextWidget(urwid.Text):
self._attributed_text = text
super().set_text(self._convert_to_markup(text))
def set_text(self, *args: Any, **kwargs: Any) -> None:
"""
This function should not be used directly. Instead, use
set_attributed_text().
"""
raise NotImplementedError("use set_attributed_text() instead")
def get_attributed_text(self) -> AttributedText:
"""
Returns the currently used AttributedText.