# Change background color using 'Configure Event Handler'

**URL:** <https://forum.inductiveautomation.com/t/change-background-color-using-configure-event-handler/2356>\
**Category:** Archived Topics\
**Created:** [November 19, 2010, 2:52pm UTC](https://forum.inductiveautomation.com/t/change-background-color-using-configure-event-handler/2356 "2010-11-19T14:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DB2](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@DB2](https://forum.inductiveautomation.com/u/DB2)\
**Post date:** [November 19, 2010, 2:52pm UTC](https://forum.inductiveautomation.com/t/change-background-color-using-configure-event-handler/2356/1 "2010-11-19T14:52:11Z")

</div>

I bound the back ground value of a label to the click of a button. What is the correct syntax to change the value?

value = ‘?’  
event.source.parent.getComponent(‘Label a1’).background = value

I’ve tried

value = ‘238, 238, 238’, value = ‘238, 238, 238, [255]’, value = ‘gray’ with no success.

---

<div class="post-metadata">

**Author:** ![dep05d](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@dep05d](https://forum.inductiveautomation.com/u/dep05d)\
**Post date:** [November 19, 2010, 4:13pm UTC](https://forum.inductiveautomation.com/t/change-background-color-using-configure-event-handler/2356/2 "2010-11-19T16:13:49Z")

</div>

Try this:

value = fpmi.gui.color(238,238,238,255)

[http://www.inductiveautomation.com/support/usermanuals/factorypmi/source/technical/jython/modulesgui.htm#color](http://www.inductiveautomation.com/support/usermanuals/factorypmi/source/technical/jython/modulesgui.htm#color)

-Dan
