# Button with custom code for external changes

**URL:** <https://community.plotly.com/t/button-with-custom-code-for-external-changes/43515>\
**Category:** 📊 Plotly Python\
**Created:** [August 7, 2020, 4:39pm UTC](https://community.plotly.com/t/button-with-custom-code-for-external-changes/43515 "2020-08-07T16:39:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sneezeman](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sneezeman](https://community.plotly.com/u/sneezeman)\
**Post date:** [August 7, 2020, 4:39pm UTC](https://community.plotly.com/t/button-with-custom-code-for-external-changes/43515/1 "2020-08-07T16:39:18Z")

</div>

Is it possible to add to a FigureWidget a button, that does not change it’s properties, but instead changes (for example) an array, that is not liked to this figure at all?
