|
Blender V4.3
|
#include <Python.h>#include "BLI_string.h"#include "BKE_context.hh"#include "../generic/python_utildefines.hh"#include "BPY_extern.hh"#include "bpy_capi_utils.hh"#include "bpy_rna_operator.hh"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 *, void *user_data) |
| static void | pyop_poll_message_free_fn (bContext *, void *user_data) |
| PyDoc_STRVAR (BPY_rna_operator_poll_message_set_doc, ".. classmethod:: 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" " :arg message: The message or a function that returns the message.\n" " :type message: str | Callable[[Any, ...], str | None]\n") | |
| static PyObject * | BPY_rna_operator_poll_message_set (PyObject *, PyObject *args) |
This file extends bpy.types.Operator with C/Python API methods and attributes.
Definition in file bpy_rna_operator.cc.
|
static |
Definition at line 100 of file bpy_rna_operator.cc.
References BPY_context_get(), CTX_wm_operator_poll_msg_set_dynamic(), params, pyop_poll_message_free_fn(), and pyop_poll_message_get_fn().
| PyDoc_STRVAR | ( | BPY_rna_operator_poll_message_set_doc | , |
| ".. classmethod:: 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" " :arg message:The message or a function that returns the message.\n" " :type message:str| | Callable[[Any,...], | ||
| str|None]\n" | ) |
|
static |
Definition at line 81 of file bpy_rna_operator.cc.
References BPY_DECREF().
Referenced by BPY_rna_operator_poll_message_set().
|
static |
Definition at line 28 of file bpy_rna_operator.cc.
References BLI_strdupn(), and error().
Referenced by BPY_rna_operator_poll_message_set().
| PyMethodDef BPY_rna_operator_poll_message_set_method_def |
Definition at line 140 of file bpy_rna_operator.cc.
Referenced by BPY_rna_types_extend_capi().