TTkTextDocument🌶️
- class TTkTextDocument(*, text: str | TTkString = ' ')[source]🌶️
Bases:
objectMethods🌶️
- dataLine(line: int) TTkString | None[source]🌶️
Return a data line in a thread-safe way.
- Parameters:
line (int) – line index.
- Returns:
the requested line or None if out of range.
- Return type:
Optional[
TTkString]
- dataLines(lineRange: slice | None = None) list[TTkString][source]🌶️
Return data lines in a thread-safe way.
- Parameters:
lineRange (Optional[slice]) – optional slice selecting a subset of lines.
- Returns:
the internal lines list or a sliced list.
- Return type:
List[
TTkString]
Note
This method does not copy the full document when
lineRangeisNone. The returned object is mutable and reflects live document updates.
TTkTextDocument Attributes🌶️
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|