change the button’s label using script

Hi, i use python create a button. I want to be able to change the label on that button as i press that button. example : i made hide/show button, so if i press that button , it will toggle its own label between show – hide.

i use command : setLabel() . no error but the label doesn’t change until i refresh the panel. Refreshing the parameter bin is the way to to see the new label applied. So anyone know how to ‘force’ refresh by using script ? any idea ?

thanx.

No Responses to “change the button’s label using script”

Post a Comment