# Controlp5 - Buttons with private functions

**URL:** https://discourse.processing.org/t/controlp5-buttons-with-private-functions/4641
**Category:** Libraries
**Created:** [October 19, 2018, 3:42pm UTC](https://discourse.processing.org/t/controlp5-buttons-with-private-functions/4641 "2018-10-19T15:42:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zac-04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/zac-04/32/2009_2.png) [@Zac-04](https://discourse.processing.org/u/Zac-04)
#### Post date: [October 19, 2018, 3:42pm UTC](https://discourse.processing.org/t/controlp5-buttons-with-private-functions/4641/1 "2018-10-19T15:42:12Z")

</div>

Lets say I had a a method that was `apple.eat()` how would I put that in a button:  
`cp5.addButton("apple.eat")` doesn’t seem to work
