Implement basic AttributedLinesWidget
This commit is contained in:
parent
66a67f3f28
commit
32bc9af2d8
3 changed files with 217 additions and 14 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue