# Pn.bind() for Menu.Button is not working

**URL:** <https://discourse.holoviz.org/t/pn-bind-for-menu-button-is-not-working/6469>\
**Category:** Panel\
**Tags:** param, widgets, panel, matplotlib, holoviews\
**Created:** [November 26, 2023, 1:06am UTC](https://discourse.holoviz.org/t/pn-bind-for-menu-button-is-not-working/6469 "2023-11-26T01:06:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueBit](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/bluebit/32/5333_2.png) [@BlueBit](https://discourse.holoviz.org/u/BlueBit)\
**Post date:** [November 26, 2023, 1:06am UTC](https://discourse.holoviz.org/t/pn-bind-for-menu-button-is-not-working/6469/1 "2023-11-26T01:06:44Z")

</div>

Hi team,  
I have designed a template as attached.

I am unable to execute “my\_func()” function while clicking the ''first" option from the “MenuButton”. The output on the Template is completely wrong. Please advise.

[test.ipynb](https://discourse.holoviz.org/uploads/short-url/yvmzwVP9LpB3qNAXIslixQMl2ES.ipynb) (63.4 KB)
