diff --git a/TermTk/TTkWidgets/texedit.py b/TermTk/TTkWidgets/texedit.py index 29b34e5d..b96ffa05 100644 --- a/TermTk/TTkWidgets/texedit.py +++ b/TermTk/TTkWidgets/texedit.py @@ -613,7 +613,7 @@ class TTkTextEdit(TTkAbstractScrollArea): :type multiLine: bool, optional :param document: 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 Document - :type document: :class:`~TermTk.TermTk.TTkGui.textdocument.TTkTextDocument`, optional + :type document: :class:`~TermTk.TTkGui.textdocument.TTkTextDocument`, optional +-----------------------------------------------------------------------------------------------+ | `Signals `_ | @@ -625,7 +625,7 @@ class TTkTextEdit(TTkAbstractScrollArea): This signal is emitted if the current character color has changed, for example caused by a change of the cursor position. :param color: the new color - :type color: :class:`~TermTk.TermTk.TTkCore.color.TTkColor` + :type color: :class:`~TermTk.TTkCore.color.TTkColor` .. py:method:: undoAvailable(available) :signal: @@ -650,6 +650,107 @@ class TTkTextEdit(TTkAbstractScrollArea): .. py:method:: toAnsi() + + .. py:method:: clear() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.clear` + + .. py:method:: setText(text) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setText` + + .. py:method:: append(text) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.append` + + .. py:method:: isReadOnly() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.isReadOnly` + + .. py:method:: setReadOnly(ro) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setReadOnly` + + .. py:method:: document() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.document` + + .. py:method:: wrapWidth() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.wrapWidth` + + .. py:method:: setWrapWidth(width) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setWrapWidth` + + .. py:method:: multiLine() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.multiLine` + + .. py:method:: lineWrapMode() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.lineWrapMode` + + .. py:method:: setLineWrapMode(mode) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setLineWrapMode` + + .. py:method:: wordWrapMode() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.wordWrapMode` + + .. py:method:: setWordWrapMode(mode) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setWordWrapMode` + + .. py:method:: textCursor() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.textCursor` + + .. py:method:: setColor(color) + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.setColor` + + .. py:method:: cut() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.cut` + + .. py:method:: copy() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.copy` + + .. py:method:: paste() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.paste` + + .. py:method:: undo() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.undo` + + .. py:method:: redo() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.redo` + + .. py:method:: isUndoAvailable() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.isUndoAvailable` + + .. py:method:: isRedoAvailable() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.isRedoAvailable` + + .. py:method:: toAnsi() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.toAnsi` + + .. py:method:: toRawText() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.toRawText` + + .. py:method:: toPlainText() + + This method forward to :class:`~TermTk.TTkWidgets.texedit.TTkTextEditView.toPlainText` + ''' __slots__ = ( '_textEditView', diff --git a/tutorial/ttkDesigner/textEdit/README.rst b/tutorial/ttkDesigner/textEdit/README.rst index d15dbe8a..26b80b85 100644 --- a/tutorial/ttkDesigner/textEdit/README.rst +++ b/tutorial/ttkDesigner/textEdit/README.rst @@ -103,7 +103,7 @@ Add the TextEdit widget Link the Events/Slots for the basic functionalities =================================================== -- | Connect the TextEdit `undo `__ / `redo `__ availability signals with the `setEnable `__ slots of the undo/redo buttons +- | Connect the TextEdit `undo `__ / `redo `__ availability signals with the `setEnabled `__ slots of the undo/redo buttons | This allow the TextEdit to control directly the availability status of the Buttons - Connect the undo/redo buttons `clicked `__ event to the `undo `__ / `redo `__ slots of the TextEditor