Browse Source

Fix typo in the documentation

pull/137/head
Eugenio Parodi 3 years ago
parent
commit
75c3a2ffbd
  1. 105
      TermTk/TTkWidgets/texedit.py
  2. 2
      tutorial/ttkDesigner/textEdit/README.rst

105
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 <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?fileUri=https://raw.githubusercontent.com/ceccopierangiolieugenio/pyTermTk/main/demo/showcase/textedit.py>`__, defaults to a new Document
:type document: :class:`~TermTk.TermTk.TTkGui.textdocument.TTkTextDocument`, optional
:type document: :class:`~TermTk.TTkGui.textdocument.TTkTextDocument`, optional
+-----------------------------------------------------------------------------------------------+
| `Signals <https://ceccopierangiolieugenio.github.io/pyTermTk/tutorial/003-signalslots.html>`_ |
@ -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',

2
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 <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.undoAvailable>`__ / `redo <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.redoAvailable>`__ availability signals with the `setEnable <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.widget.html#TermTk.TTkWidgets.widget.TTkWidget.setEnable>`__ slots of the undo/redo buttons
- | Connect the TextEdit `undo <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.undoAvailable>`__ / `redo <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.redoAvailable>`__ availability signals with the `setEnabled <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.widget.html#TermTk.TTkWidgets.widget.TTkWidget.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 <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.button.html#TermTk.TTkWidgets.button.TTkButton.clicked>`__ event to the `undo <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.undo>`__ / `redo <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.texedit.html#TermTk.TTkWidgets.texedit.TTkTextEdit.redo>`__ slots of the TextEditor

Loading…
Cancel
Save