so I have this line of code which adds a button to my custom panel
row.operator("aligncenter", text="Align Center")
However, I would like to make it disabled (in some cases)
Which parameters do I use, and is there a site where I can get such info (blender python API is very incomplete)
To make something disabled just do row.active = False or op = row.operator then op.active = False or use .enabled = False (the difference is one lets the user change it while it’s disabled and the other doesn’t.)