Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_rna_operator.c
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
| PyDoc_STRVAR(BPY_rna_operator_poll_message_set_doc, | PyDoc_STRVAR(BPY_rna_operator_poll_message_set_doc, | ||||
| ".. method:: poll_message_set(message, *args)\n" | ".. method:: poll_message_set(message, *args)\n" | ||||
| "\n" | "\n" | ||||
| " Set the message to show in the tool-tip when poll fails.\n" | " Set the message to show in the tool-tip when poll fails.\n" | ||||
| "\n" | "\n" | ||||
| " When message is callable, " | " When message is callable, " | ||||
| "additional user defined positional arguments are passed to the message function.\n" | "additional user defined positional arguments are passed to the message function.\n" | ||||
| "\n" | "\n" | ||||
| " :param message: The message or a function that returns the message.\n" | " :arg message: The message or a function that returns the message.\n" | ||||
| " :type message: string or a callable that returns a string or None.\n"); | " :type message: string or a callable that returns a string or None.\n"); | ||||
| static PyObject *BPY_rna_operator_poll_message_set(PyObject *UNUSED(self), PyObject *args) | static PyObject *BPY_rna_operator_poll_message_set(PyObject *UNUSED(self), PyObject *args) | ||||
| { | { | ||||
| const Py_ssize_t args_len = PyTuple_GET_SIZE(args); | const Py_ssize_t args_len = PyTuple_GET_SIZE(args); | ||||
| if (args_len == 0) { | if (args_len == 0) { | ||||
| PyErr_SetString(PyExc_ValueError, | PyErr_SetString(PyExc_ValueError, | ||||
| "poll_message_set(message, ...): requires a message argument"); | "poll_message_set(message, ...): requires a message argument"); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||