3
$\begingroup$

I am creating an addon, but I needed a small help. This is the code

    row2.label("Text",icon = 'BLENDER')

Now, if I execute it, the Icon is placed before the Text.

Is there anyway to place the Icon after the text?

$\endgroup$

1 Answer 1

5
$\begingroup$

You could add two labels, one with the text only, and another with the icon only:

    row = layout.row()
    row.alignment = 'LEFT'
    row.label("Text")
    row.label(icon='BLENDER')
$\endgroup$
1
  • 1
    $\begingroup$ will not work for menus operator button tho $\endgroup$
    – Fox
    Oct 13, 2019 at 16:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .