Browse Source

chore: fix docstrings

pull/572/head
Parodi, Eugenio 🌶 3 months ago
parent
commit
a0151c205e
  1. 8
      libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/table_edit_proxy.py
  2. 2
      libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/tablemodelcsv.py
  3. 2
      libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/tablemodelsqlite3.py

8
libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/table_edit_proxy.py

@ -158,7 +158,7 @@ class TTkCellListType(TTkCellListTypeBase):
def value(self) -> Any:
return self._value
def serValue(self, val: Any) -> None:
def setValue(self, val: Any) -> None:
'''
Set the value
@ -253,6 +253,12 @@ class TTkTableProxyEditWidget(TTkWidget):
self.close()
def isModal(self) -> bool:
'''
Check if the editor should be displayed modally.
:return: True if the editor requires modal display, False otherwise
:rtype: bool
'''
return False

2
libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/tablemodelcsv.py

@ -32,7 +32,7 @@ from TermTk.TTkWidgets.TTkModelView.tablemodellist import TTkTableModelList
class TTkTableModelCSV(TTkTableModelList):
'''
:py:class:`TTkTableModelCSV` extends :py:class:`TTkTableModelList` with cvs loading helpers.
:py:class:`TTkTableModelCSV` extends :py:class:`TTkTableModelList` with csv loading helpers.
You can address the csv file through the Filename (filename) or the FileDescriptor (fd).

2
libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/tablemodelsqlite3.py

@ -67,7 +67,7 @@ class TTkTableModelSQLite3(TTkAbstractTableModel):
In This example i assume i have a database named **sqlite.database.db** which contain a table **users**
Please refer to `test.ui.032.table.10.sqlite.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tests/t.ui/test.ui.032.table.10.sqlite.py>`_ for working eample.
Please refer to `test.ui.032.table.10.sqlite.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tests/t.ui/test.ui.032.table.10.sqlite.py>`_ for working example.
.. code-block:: python

Loading…
Cancel
Save