PyAPI: correct function name in argument parsing

Also correct axis in `blf` example.

Ref !154424
This commit is contained in:
Campbell Barton 2026-02-15 19:14:33 +11:00
parent ba48286c3a
commit 08516bebb1
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ font_id = blf.load("/path/to/font.ttf")
blf.color(font_id, 1.0, 1.0, 1.0, 1.0)
blf.size(font_id, font_size)
blf.position(font_id, 0, image_size[0] - font_size, 0)
blf.position(font_id, 0, image_size[1] - font_size, 0)
blf.enable(font_id, blf.WORD_WRAP)
blf.word_wrap(font_id, image_size[0])

View file

@ -1707,7 +1707,7 @@ static PyObject *BPy_IDGroup_pop(BPy_IDProperty *self, PyObject *args)
char *key;
PyObject *def = nullptr;
if (!PyArg_ParseTuple(args, "s|O:get", &key, &def)) {
if (!PyArg_ParseTuple(args, "s|O:pop", &key, &def)) {
return nullptr;
}