TextBox¶
- class tanmatsu.widgets.TextBox(*args, text: str = '', editable: bool = True, **kwargs)¶
Bases:
Box,ScrollableWidget containing editable or non-editable text.
- Parameters
text (str) – The text the TextBox should contain.
editable (bool) – Whether the TextBox should be editable or not.
- property editable: bool¶
- Getter
Gets whether the text box is editable.
- Setter
Sets whether the text box is editable.
- property cursor: int¶
- Getter
Gets the cursor location.
- Setter
Sets the cursor location.
- property text: str¶
- Getter
Gets the text contained within the text box.
- Setter
Sets the text contained within the text box.