diff options
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r-- | plugins/pychrysalide/glibext/configuration.c | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/plugins/pychrysalide/glibext/configuration.c b/plugins/pychrysalide/glibext/configuration.c index eb725ff..18d681f 100644 --- a/plugins/pychrysalide/glibext/configuration.c +++ b/plugins/pychrysalide/glibext/configuration.c @@ -476,13 +476,15 @@ static int py_config_param_set_value(PyObject *self, PyObject *value, void *clos PyTypeObject *get_python_config_param_type(void) { static PyMethodDef py_config_param_methods[] = { - { "make_empty", py_config_param_make_empty, - METH_NOARGS, - "Unset the value of the current parameter." + { + "make_empty", py_config_param_make_empty, + METH_NOARGS, + "make_empty($self, /)\n--\n\nUnset the value of the current parameter." }, - { "reset", py_config_param_reset, - METH_NOARGS, - "Reset the content of the current parameter." + { + "reset", py_config_param_reset, + METH_NOARGS, + "reset($self, /)\n--\n\nReset the content of the current parameter." }, { NULL } }; @@ -1096,29 +1098,35 @@ static PyObject *py_generic_config_get_filename(PyObject *self, void *closure) PyTypeObject *get_python_generic_config_type(void) { static PyMethodDef py_generic_config_methods[] = { - { "read", py_generic_config_read, - METH_NOARGS, - "Read the configuration from its relative XML file." + { + "read", py_generic_config_read, + METH_NOARGS, + "read(, /)\n--\n\nRead the configuration from its relative XML file." }, - { "write", py_generic_config_write, - METH_NOARGS, - "Write the configuration to its relative XML file." + { + "write", py_generic_config_write, + METH_NOARGS, + "write(, /)\n--\n\nWrite the configuration to its relative XML file." }, - { "search", py_generic_config_search, - METH_VARARGS, - "Look for a given configuration parameter." + { + "search", py_generic_config_search, + METH_VARARGS, + "search($self, path, /)\n--\n\nLook for a given configuration parameter." }, - { "add", py_generic_config_add, - METH_VARARGS, - "Add an existing parameter to a configuration." + { + "add", py_generic_config_add, + METH_VARARGS, + "add($self, param, /)\n--\n\nAdd an existing parameter to a configuration." }, - { "delete", py_generic_config_delete, - METH_VARARGS, - "Delete an existing parameter from a configuration." + { + "delete", py_generic_config_delete, + METH_VARARGS, + "delete($self, path, /)\n--\n\nDelete an existing parameter from a configuration." }, - { "params", py_generic_config_list_params, - METH_NOARGS, - "List all registered configuration parameters." + { + "params", py_generic_config_list_params, + METH_NOARGS, + "params($self, /)\n--\n\nList all registered configuration parameters." }, { NULL } }; |