TTkTextEditπΆοΈ
- class TTkTextEdit(*, parent: TTkWidget | None = None, visible: bool = True, readOnly: bool = False, multiLine: bool = True, document: TTkTextDocument | None = None, follow: bool = False, textEditView: TTkTextEditView | None = None, lineNumber: bool = False, lineNumberStarting: int = 0, **kwargs)[source]πΆοΈ
Bases:
TTkAbstractScrollAreaTTkTextEditis a container widget which placeTTkTextEditViewin a scrolling area with on-demand scroll bars.βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β 0β"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor β₯ β β <βincididunt ut labore et dolore magna aliqua. β β β 1β β β β 2βUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquβ β β <βip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate β β β <βvelit esse cillum dolore eu fugiat nulla pariatur. β β β 3β β β β 4βExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deseruβ β β <βnt mollit anim id est laborum." β¨ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Demo: textedit.py (tryItOnline)
- Parameters:
textEditView (
TTkTextEditView, optional) β a custom TextEdit View to be used instead of the default one.lineNumber (bool, optional) β show the line number on the left side, defaults to False
lineNumberStarting (int, optional) β set the starting number of the left line number column, defaults to 0
TTkTextEditViewβs forwarded init params:- Parameters:
readOnly (bool, optional) β In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible, defaults to False
multiLine (bool, optional) β In a multiline text edit the user can split the text in multiple lines, defaults to True
document (
TTkTextDocument, optional) β If required an external Document can be used in this text editor, this option is useful if multiple editors share the same document as in the demo, defaults to a new Documentfollow (bool, optional) β If True, the text edit will automatically scroll to the bottom when new text is added, defaults to False
TTkContainerβs inherited init params:- Parameters:
layout (
TermTk.TTkLayouts) β the layout of this widget, optional, defaults toTTkLayoutpadding (
TTkPadding) β the padding (top, bottom, left, right) of the widget, defaults to (0,0,0,0)paddingTop (int) β the Top padding, override Top padding if already defined, optional, default=0 if padding is not defined
paddingBottom (int) β the Bottom padding, override Bottom padding if already defined, optional, default=0 if padding is not defined
paddingLeft (int) β the Left padding, override Left padding if already defined, optional, default=0 if padding is not defined
paddingRight (int) β the Right padding, override Right padding if already defined, optional, default=0 if padding is not defined
forwardStyle (bool) β [Experimental] any change of style will reflect the children, defaults to False
TTkWidgetβs inherited init params:- Parameters:
name (str, optional) β the name of the widget, defaults to ββ
parent (
TTkWidget, optional) β the parent widget, defaults to Nonex (int, optional) β the x position, defaults to 0
y (int, optional) β the y position, defaults to 0
pos ((int,int), optional) β the [x,y] position (override the previously defined x, y), defaults to (x,y)
width (int, optional) β the width of the widget, defaults to 0
height (int, optional) β the height of the widget, defaults to 0
size ((int,int), optional) β the size [width, height] of the widget (override the previously defined sizes), defaults to (width,height)
maxWidth (int, optional) β the maxWidth of the widget, defaults to 0x10000
maxHeight (int, optional) β the maxHeight of the widget, defaults to 0x10000
maxSize ((int,int), optional) β the max [width,height] of the widget, optional, defaults to (maxWidth,maxHeight)
minWidth (int, optional) β the minWidth of the widget, defaults to 0
minHeight (int, optional) β the minHeight of the widget, defaults to 0
minSize ((int,int), optional) β the minSize [width,height] of the widget, optional, defaults to (minWidth,minHeight)
toolTip (
TTkString, optional) β This property holds the widgetβs tooltip, defaults to ββstyle (dict, optional) β this field hold the custom style to be used by this widget
addStyle (dict, optional) β this field is required to override/merge the new style on top of the current one, useful if only few params need to be changed
visible (bool, optional) β the visibility, optional, defaults to True
enabled (bool, optional) β the ability to handle input events, optional, defaults to True
TMouseEventsβs inherited init params:Initialize self. See help(type(self)) for accurate signature.
TDragEventsβs inherited init params:Initialize self. See help(type(self)) for accurate signature.
SignalsπΆοΈ
Signals linked to:
TTkTextEditViewTTkTextEditView.currentColorChangedThis signal is emitted if the current character color has changed, for example caused by a change of the cursor position.
TTkTextEditView.cursorPositionChangedThis signal is emitted whenever the position of the cursor changed.
TTkTextEditView.redoAvailableThis signal is emitted whenever redo operations become available (available is true) or unavailable (available is false).
TTkTextEditView.textChangedThis signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.
TTkTextEditView.undoAvailableThis signal is emitted whenever undo operations become available (available is true) or unavailable (available is false).
TTkTextEditsignals:This signal is emitted whenever the widget is closed
This signal is emitted whenever the widget stye change
This signal is emitted whenever the focus status change i.e. with the
setFocus()orclearFocus()methods.This signal is emitted whenever the widget size change
SlotsπΆοΈ
Slots linked to:
TTkTextEditViewTTkTextEditView.append(text)Appends a new paragraph with text to the end of the text edit.
Copies any selected text to the clipboard.
Copies the selected text to the clipboard and deletes it from the text edit.
TTkTextEditView.find(exp)Search for text in the document and place the cursor at the beginning of the first match.
Pastes the text from the clipboard into the text edit at the current cursor position.
Redoes the last operation.
TTkTextEditView.scrollTo(position)Scrolls the view to the specified edge(s) of the text document.
TTkTextEditView.setColor(color)Change the color used by the cursor to input new text or change the color of the selection
TTkTextEditView.setFollow(follow)Enable or disable the follow-bottom mode.
TTkTextEditView.setText(text)Sets the text edit's text.
Undoes the last operation.
TTkTextEditslots:append(text)copy()cut()find(exp)paste()redo()scrollTo(position)setColor(color)setFollow(follow)setLineNumber(ln)setLineNumberStarting(starting)setText(text)undo()Slots Inherited from:
TTkContainerhide()hide the widget
show()show the widget
Slots Inherited from:
TTkWidgetclose()Close (Destroy/Remove) the widget
hide()hide the widget
lowerWidget()Lower the Widget below its relatives
raiseWidget([raiseParent])Raise the Widget above its relatives
setDisabled([disabled])This property holds whether the widget is disabled
setEnabled([enabled])This property holds whether the widget is enabled
setFocus()setVisible(visible)Set the visibility status of this widget
show()show the widget
update([repaint,Β updateLayout,Β updateParent])Update the scroll area and viewport
MembersπΆοΈ
- closed: pyTTkSignalπΆοΈ
This signal is emitted whenever the widget is closed
- Parameters:
widget (TTkWidget) β the widget closed (=self)
- currentStyleChanged: pyTTkSignalπΆοΈ
This signal is emitted whenever the widget stye change
- Parameters:
style (dict) β the new style applied
- focusChanged: pyTTkSignalπΆοΈ
This signal is emitted whenever the focus status change i.e. with the
setFocus()orclearFocus()methods- Parameters:
status (bool) β the curent focus status
- sizeChanged: pyTTkSignalπΆοΈ
This signal is emitted whenever the widget size change
- Parameters:
width (int) β the new widget width
height (int) β the new widget height
MethodsπΆοΈ
Methods linked to:
TTkTextEditViewTTkTextEditView.append(text)Appends a new paragraph with text to the end of the text edit.
Deletes all the text in the text edit.
Copies any selected text to the clipboard.
Copies the selected text to the clipboard and deletes it from the text edit.
This property holds the underlying document of the text editor.
Returns previously set extra selections.
TTkTextEditView.find(exp)Search for text in the document and place the cursor at the beginning of the first match.
This property holds whether the view follows the last line whenever the document changes.
This property holds whether the text edit is read-only
This property holds whether redo is available.
This property holds whether undo is available.
This property holds the line wrap mode
This property define if the text edit area will use a single line, like in the line-edit or it allows multilines like a normal text edit area.
Pastes the text from the clipboard into the text edit at the current cursor position.
Redoes the last operation.
TTkTextEditView.scrollTo(position)Scrolls the view to the specified edge(s) of the text document.
TTkTextEditView.setColor(color)Change the color used by the cursor to input new text or change the color of the selection
This function allows temporarily marking certain regions in the document with a given color, specified as selections.
TTkTextEditView.setFollow(follow)Enable or disable the follow-bottom mode.
TTkTextEditView.setLineWrapMode(mode[,Β ...])Set the wrapping method
This property holds whether the text edit is read-only
TTkTextEditView.setText(text)Sets the text edit's text.
TTkTextEditView.setWordWrapMode(*args,Β **kwargs)TTkTextEditView.setWrapWidth(*args,Β **kwargs)This property holds the underlying text cursor.
Returns the text of the text edit as ANSI text string.
Returns the text of the text edit as plain text string.
Return
TTkStringrepresenting the documentUndoes the last operation.
TTkTextEditView.wordWrapMode(*args,Β **kwargs)TTkTextEditView.wrapWidth(*args,Β **kwargs)TTkTextEditmethods:- append(text: str | TTkString) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.append()Appends a new paragraph with text to the end of the text edit. The text can be plain text or
TTkString.- Parameters:
text (str or
TTkString) β the text
- clear() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.clear()Deletes all the text in the text edit.
Note
The undo/redo history is also cleared.
- copy() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.copy()Copies any selected text to the clipboard.
- cut() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.cut()Copies the selected text to the clipboard and deletes it from the text edit.
If there is no selected text nothing happens.
- document() TTkTextDocument[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.document()This property holds the underlying document of the text editor.
- Return type:
- ensureCursorVisible()[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.ensureCursorVisible()
- extraSelections() List[ExtraSelection][source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.extraSelections()Returns previously set extra selections.
- Return type:
List[
ExtraSelection]
- find(exp: str | TTkString) bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.find()Search for text in the document and place the cursor at the beginning of the first match.
- Parameters:
exp (str or
TTkString) β the expression to find- Returns:
Trueif the operation is successful,Falseotherwise- Return type:
bool
- follow() bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.follow()This property holds whether the view follows the last line whenever the document changes.
- Return type:
bool
- isReadOnly() bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.isReadOnly()This property holds whether the text edit is read-only
In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible.
This propertyβs default is false.
- Return type:
bool
- isRedoAvailable() bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.isRedoAvailable()This property holds whether redo is available.
- Returns:
the redo available status
- Return type:
bool
- isUndoAvailable() bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.isUndoAvailable()This property holds whether undo is available.
- Returns:
the undo available status
- Return type:
bool
- lineWrapMode() LineWrapMode[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.lineWrapMode()This property holds the line wrap mode
The default mode is
TTkK.LineWrapMode.NoWrap.- Return type:
- multiLine() bool[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.multiLine()This property define if the text edit area will use a single line, like in the line-edit or it allows multilines like a normal text edit area.
- Return type:
bool
- paste() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.paste()Pastes the text from the clipboard into the text edit at the current cursor position.
If there is no text in the clipboard nothing happens.
- redo() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.redo()Redoes the last operation.
If there is no operation to redo, i.e. there is no redo step in the undo/redo history, nothing happens.
- ruler() TTkTextEditRuler[source]πΆοΈ
- scrollTo(position: TextEditEdge) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.scrollTo()Scrolls the view to the specified edge(s) of the text document.
This method allows scrolling to the top, bottom, left, or right edge of the document. Multiple edges can be specified by combining them with the bitwise OR operator.
- Parameters:
position (
TTkK.TextEditEdge) β the edge(s) to scroll to
- setColor(color: TTkColor) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setColor()Change the color used by the cursor to input new text or change the color of the selection
- Parameters:
color (
TTkColor) β the color to be used
- setExtraSelections(extraSelections: List[ExtraSelection]) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setExtraSelections()This function allows temporarily marking certain regions in the document with a given color, specified as selections. This can be useful for example in a programming editor to mark a whole line of text with a given background color to indicate the existence of a breakpoint.
- Parameters:
extraSelections (List[
ExtraSelection]) β the list of extra selections.
- setFollow(follow: bool) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setFollow()Enable or disable the follow-bottom mode.
When enabled, the view automatically scrolls to the last visible row every time the underlying document changes.
- Parameters:
follow (bool) β
Trueto keep following the bottom row,Falseotherwise
- setLineWrapMode(mode: LineWrapMode, wrapEngine: WrapEngine = WrapEngine.FullWrap) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setLineWrapMode()Set the wrapping method
- Parameters:
mode (
TTkK.LineWrapMode) β the line wrap modewrapEngine (
TTkK.WrapEngine) β the wrap engine used when wrapping is enabled
- setReadOnly(ro: bool) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setReadOnly()This property holds whether the text edit is read-only
In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible.
- Parameters:
ro (bool) β the readonly status
- setText(text: str | TTkString) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setText()Sets the text editβs text. The text can be plain text or
TTkStringand the text edit will try to guess the right format.- Parameters:
text (str or
TTkString) β the text
- setWordWrapMode(*args, **kwargs) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setWordWrapMode()See also
this method is forwarded to
TTkTextWrap.setWordWrapMode()
- setWrapWidth(*args, **kwargs) None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.setWrapWidth()See also
this method is forwarded to
TTkTextWrap.setWrapWidth()
- textCursor() TTkTextCursor[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.textCursor()This property holds the underlying text cursor.
- Return type:
- toAnsi() str[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.toAnsi()Returns the text of the text edit as ANSI text string.
This string will include the ANSI escape codes for color and text formatting.
- Return type:
str
- toPlainText() str[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.toPlainText()Returns the text of the text edit as plain text string.
- Return type:
str
- toRawText() TTkString[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.toRawText()Return
TTkStringrepresenting the document- Return type:
- undo() None[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.undo()Undoes the last operation.
If there is no operation to undo, i.e. there is no undo step in the undo/redo history, nothing happens.
- wordWrapMode(*args, **kwargs) WrapMode[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.wordWrapMode()See also
this method is forwarded to
TTkTextWrap.wordWrapMode()
- wrapWidth(*args, **kwargs) int[source]πΆοΈ
See also
this method is forwarded to
TTkTextEditView.wrapWidth()See also
this method is forwarded to
TTkTextWrap.wrapWidth()
Methods Inherited from:
TTkAbstractScrollArearesizeEvent(w,Β h)Handle resize events
setHorizontalScrollBarPolicy(policy)Set the horizontal scroll bar policy
setVerticalScrollBarPolicy(policy)Set the vertical scroll bar policy
setViewport(viewport)Set the viewport widget
update([repaint,Β updateLayout,Β updateParent])Update the scroll area and viewport
viewport()Return the current viewport
Methods Inherited from:
TTkContaineraddWidget(widget)getPadding()Retrieve the
TTkContainer's paddings sizes as shown in Layout TopologygetWidgetByName(name)Return the widget from its name.
hide()hide the widget
keyEvent(evt)This event handler, can be reimplemented in a subclass to receive key events for the widget.
layout()Get the Layout
maximumHeight()Retrieve the maximum height
maximumWidth()Retrieve the maximum width
minimumHeight()Retrieve the minimum height
minimumWidth()Retrieve the minimum width
paintChildCanvas()removeWidget(widget)rootLayout()This is a root layout mainly used to place items that are not supposed to be inside the main layout (i.e. the menu elements).
setCurrentStyle(*args,Β **kwargs)Set the currently active style
setLayout(layout)Set the Layout used by this widget to place all the child widgets.
setPadding(top,Β bottom,Β left,Β right)Set the
TTkContainer's paddings sizes as shown in Layout Topologyshow()show the widget
update([repaint,Β updateLayout,Β updateParent])Update the scroll area and viewport
Methods Inherited from:
TTkWidgetclearFocus()Remove the Focus state of this widget
close()Close (Destroy/Remove) the widget
currentStyle()Retrieve the currently active style
disableWidgetCursor([disable])Disable or enable the widget cursor
enableWidgetCursor([enable])Enable or disable the widget cursor
focusInEvent()Callback triggered when the widget receives focus
focusOutEvent()Callback triggered when the widget loses focus
focusPolicy()Retrieve the focus policy of this widget
geometry()Retrieve the widget geometry
getCanvas()Retrieve the widget canvas
getPixmap()Convenience function which return a pixmap representing the current widget status
getWidgetByName(name)Return the widget from its name.
hasFocus()This property holds the focus status of this widget
height()Retrieve the widget height
hide()hide the widget
isEnabled()This property holds whether the widget is enabled
isEntered()Check if the mouse cursor is currently over this widget
isVisible()Retrieve the visibility status of this widget
isVisibleAndParent()Check if the widget and all its parents are visible
lowerWidget()Lower the Widget below its relatives
maxDimension(orientation)Retrieve the maximum dimension for the given orientation
maximumHeight()Retrieve the maximum height
maximumSize()Retrieve the maximum size
maximumWidth()Retrieve the maximum width
mergeStyle(style)Merge additional style properties with the existing style
minDimension(orientation)Retrieve the minimum dimension for the given orientation
minimumHeight()Retrieve the minimum height
minimumSize()Retrieve the minimum size
minimumWidth()Retrieve the minimum width
mouseEvent(evt)Handle mouse events for this widget and its children
move(x,Β y)Move the widget
moveEvent(x,Β y)Convenience function, Event Callback triggered after a successful move
name()Retrieve the name of this widget
paintChildCanvas()paintEvent(canvas)Paint Event callback, this need to be overridden in the widget.
parentWidget()Retrieve the parent widget
pasteEvent(txt)Callback triggered when a paste event is forwarded to this widget.
pos()Retrieve the widget position
raiseWidget([raiseParent])Raise the Widget above its relatives
resize(width,Β height)Resize the widget
resizeEvent(w,Β h)Handle resize events
setCurrentStyle(*args,Β **kwargs)Set the currently active style
setDefaultSize(arg,Β width,Β height)Set default size if not already specified in arguments
setDisabled([disabled])This property holds whether the widget is disabled
setDropEventProxy(proxy)setEnabled([enabled])This property holds whether the widget is enabled
setFocus()setFocusPolicy(policy)This property holds the way the widget accepts keyboard focus
setGeometry(x,Β y,Β width,Β height)Resize and move the widget
setMaximumHeight(maxh)Set the maximum height of the widget
setMaximumSize(maxw,Β maxh)Set the maximum size of the widget
setMaximumWidth(maxw)Set the maximum width of the widget
setMinimumHeight(minh)Set the minimum height of the widget
setMinimumSize(minw,Β minh)Set the minimum size of the widget
setMinimumWidth(minw)Set the minimum width of the widget
setName(name)Set the name of this Instance
setParent(parent)Set the parent widget
setStyle([style])Set the style for the widget
setToolTip(toolTip)Set the widget tooltip
setVisible(visible)Set the visibility status of this widget
setWidgetCursor([pos,Β type])Set the widget cursor position and type
show()show the widget
size()Retrieve the widget size
style()Retrieve a copy of the widget style dictionary
toolTip()Retrieve the widget tooltip
update([repaint,Β updateLayout,Β updateParent])Update the scroll area and viewport
widgetItem()Retrieve the widget item (layout item wrapper)
width()Retrieve the widget width
x()Retrieve the horizontal position
y()Retrieve the vertical position
Methods Inherited from:
TMouseEventsenterEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse enter events for the widget.
leaveEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse leave events for the widget.
mouseDoubleClickEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse click events for the widget.
mouseDragEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse drag events for the widget.
mouseMoveEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse move events for the widget.
mousePressEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse press events for the widget.
mouseReleaseEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse release events for the widget.
mouseTapEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse click events for the widget.
wheelEvent(evt)This event handler, can be reimplemented in a subclass to receive mouse wheel events for the widget.
Methods Inherited from:
TKeyEventskeyEvent(evt)This event handler, can be reimplemented in a subclass to receive key events for the widget.
Methods Inherited from:
TDragEventsdragEnterEvent(evt)This event handler, can be reimplemented in a subclass to receive drag events for the widget.
dragLeaveEvent(evt)This event handler, can be reimplemented in a subclass to receive drag events for the widget.
dragMoveEvent(evt)This event handler, can be reimplemented in a subclass to receive drag events for the widget.
dropEvent(evt)This event handler, can be reimplemented in a subclass to receive drag events for the widget.
TTkTextEdit ClassesπΆοΈ
- class ExtraSelection(cursor: ~TermTk.TTkGui.textcursor.TTkTextCursor, format: ~TermTk.TTkCore.constant.TTkConstant.SelectionFormat = SelectionFormat.NONE, color: ~TermTk.TTkCore.color.TTkColor = <TermTk.TTkCore.color.TTkColor object>)πΆοΈ
Bases:
objectThe
ExtraSelectionstructure provides a way of specifying a character format for a given selection in a document.- Parameters:
format (
TTkK.SelectionFormat) β A format that is used to specify the type of selection, defaults toTTkK.NONE.color (
TTkColor) β The color used to specify the foreground/background color/mod for the selection.cursor (
TTkTextCursor) β A cursor that contains a selection in aTTkTextDocument.
- cursor() TTkTextCursorπΆοΈ
This property holds the cursor that contains a selection in a
TTkTextDocument.- Return type:
- format() SelectionFormatπΆοΈ
This property holds the format that is used to specify the type of selection.
- Return type:
- setColor(color: TTkColor) NoneπΆοΈ
Set the color.
- Parameters:
color (
TTkColor) β A color that is used for the selection.
- setCursor(cursor: TTkTextCursor) NoneπΆοΈ
Set the cursor.
- Parameters:
cursor (
TTkTextCursor) β A cursor that contains a selection in aQTextDocument.
- setFormat(format: SelectionFormat) NoneπΆοΈ
Set the format.
- Parameters:
format (
TTkK.SelectionFormat) β A format that is used to specify the type of selection.
TTkTextEdit AttributesπΆοΈ
|
|
|
|
|
|
|
|
|
|
|