Blender V4.3
bpy_rna_operator.cc File Reference
#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)
 

Detailed Description

This file extends bpy.types.Operator with C/Python API methods and attributes.

Definition in file bpy_rna_operator.cc.

Function Documentation

◆ BPY_rna_operator_poll_message_set()

static PyObject * BPY_rna_operator_poll_message_set ( PyObject * ,
PyObject * args )
static

◆ PyDoc_STRVAR()

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"  )

◆ pyop_poll_message_free_fn()

static void pyop_poll_message_free_fn ( bContext * ,
void * user_data )
static

Definition at line 81 of file bpy_rna_operator.cc.

References BPY_DECREF().

Referenced by BPY_rna_operator_poll_message_set().

◆ pyop_poll_message_get_fn()

static char * pyop_poll_message_get_fn ( bContext * ,
void * user_data )
static

Definition at line 28 of file bpy_rna_operator.cc.

References BLI_strdupn(), and error().

Referenced by BPY_rna_operator_poll_message_set().

Variable Documentation

◆ BPY_rna_operator_poll_message_set_method_def

PyMethodDef BPY_rna_operator_poll_message_set_method_def
Initial value:
= {
"poll_message_set",
METH_VARARGS | METH_STATIC,
BPY_rna_operator_poll_message_set_doc,
}
static PyObject * BPY_rna_operator_poll_message_set(PyObject *, PyObject *args)

Definition at line 140 of file bpy_rna_operator.cc.

Referenced by BPY_rna_types_extend_capi().