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

Detailed Description

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

Definition in file bpy_rna_operator.c.

Function Documentation

◆ BPY_rna_operator_poll_message_set()

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

◆ PyDoc_STRVAR()

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

◆ pyop_poll_message_free_fn()

static void pyop_poll_message_free_fn ( bContext UNUSEDC,
void user_data 
)
static

Definition at line 73 of file bpy_rna_operator.c.

References BPY_DECREF(), and user_data.

Referenced by BPY_rna_operator_poll_message_set().

◆ pyop_poll_message_get_fn()

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

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().

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 *UNUSED(self), PyObject *args)

Definition at line 131 of file bpy_rna_operator.c.

Referenced by BPY_rna_types_extend_capi().