|
Blender
V3.3
|
#include <Python.h>#include "BLI_string.h"#include "BKE_context.h"#include "../generic/python_utildefines.h"#include "BPY_extern.h"#include "bpy_capi_utils.h"#include "bpy_rna_operator.h"Go to the source code of this file.
Operator <tt>poll_message_set</tt> Method | |
| PyMethodDef | BPY_rna_operator_poll_message_set_method_def |
| static char * | pyop_poll_message_get_fn (bContext *UNUSED(C), void *user_data) |
| static void | pyop_poll_message_free_fn (bContext *UNUSED(C), void *user_data) |
| PyDoc_STRVAR (BPY_rna_operator_poll_message_set_doc, ".. method:: poll_message_set(message, *args)\n" "\n" " Set the message to show in the tool-tip when poll fails.\n" "\n" " When message is callable, " "additional user defined positional arguments are passed to the message function.\n" "\n" " :param message: The message or a function that returns the message.\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) |
This file extends bpy.types.Operator with C/Python API methods and attributes.
Definition in file bpy_rna_operator.c.
|
static |
Definition at line 90 of file bpy_rna_operator.c.
References BPY_context_get(), C, CTX_wm_operator_poll_msg_set_dynamic(), NULL, params, pyop_poll_message_free_fn(), and pyop_poll_message_get_fn().
| PyDoc_STRVAR | ( | BPY_rna_operator_poll_message_set_doc | , |
| ".. method:: poll_message_set(message, *args)\n" "\n" " Set the message to show in the tool-tip when poll fails.\n" "\n" " When message is | callable, | ||
| " "additional user defined positional arguments are passed to the message function.\n" "\n" " :param message:The message or a function that returns the message.\n" " :type message:string or a callable that returns a string or None.\n" | |||
| ) |
Definition at line 73 of file bpy_rna_operator.c.
References BPY_DECREF(), and user_data.
Referenced by BPY_rna_operator_poll_message_set().
Definition at line 26 of file bpy_rna_operator.c.
References BLI_strdup(), error(), NULL, and user_data.
Referenced by BPY_rna_operator_poll_message_set().
| PyMethodDef BPY_rna_operator_poll_message_set_method_def |
Definition at line 131 of file bpy_rna_operator.c.
Referenced by BPY_rna_types_extend_capi().