Gui: Fix some docstrings in Selection module

This commit is contained in:
marioalexis
2022-01-29 14:08:48 -03:00
committed by Uwe
parent d6350d4f33
commit 7cc5cc8d74

View File

@@ -1912,8 +1912,8 @@ PyMethodDef SelectionSingleton::Methods[] = {
"getPickedList(docName) -> list of Gui.SelectionObject\n"
"\n"
"Return a list of SelectionObjects generated by the last mouse click.\n"
"If no document name is given the active document is used and '*' means\n"
"all documents.\n"
"If no document name is given the active document is used and '*'\n"
"means all documents.\n"
"\n"
"docName : str\n Name of the `App.Document`."},
{"enablePickedList", (PyCFunction) SelectionSingleton::sEnablePickedList, METH_VARARGS,
@@ -2004,7 +2004,7 @@ PyMethodDef SelectionSingleton::Methods[] = {
"clearForward : bool\n Clear the forward selection stack.\n"
"overwrite : bool\n Overwrite the top back selection stack with current selection."},
{"hasSelection", (PyCFunction) SelectionSingleton::sHasSelection, METH_VARARGS,
"hasSelection(docName, resolve=False) -> bool"
"hasSelection(docName, resolve=False) -> bool\n"
"\n"
"Check if there is any selection. If no document name is given,\n"
"checks selections in all documents.\n"
@@ -2012,9 +2012,10 @@ PyMethodDef SelectionSingleton::Methods[] = {
"docName : str\n Name of the `App.Document`.\n"
"resolve : bool"},
{"hasSubSelection", (PyCFunction) SelectionSingleton::sHasSubSelection, METH_VARARGS,
"hasSubSelection(docName='',subElement=False) -> bool\n"
"hasSubSelection(docName, subElement=False) -> bool\n"
"\n"
"Check if there is any selection with subname.\n"
"Check if there is any selection with subname. If no document name\n"
"is given the active document is used and '*' means all documents.\n"
"\n"
"docName : str\n Name of the `App.Document`.\n"
"subElement : bool"},