# How to make specific of controller bar button connect to a function

**URL:** <https://discourse.slicer.org/t/how-to-make-specific-of-controller-bar-button-connect-to-a-function/30826>\
**Category:** Community\
**Tags:** python\
**Created:** [July 27, 2023, 4:18am UTC](https://discourse.slicer.org/t/how-to-make-specific-of-controller-bar-button-connect-to-a-function/30826 "2023-07-27T04:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [July 27, 2023, 4:18am UTC](https://discourse.slicer.org/t/how-to-make-specific-of-controller-bar-button-connect-to-a-function/30826/1 "2023-07-27T04:18:46Z")

</div>

I follow the script and creat a button in the controller bar successfully!  
Now I want to know how to make the button connect to a function ?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/1/319f0215a737c7e1f77c32ac0bfa5da9d5a03f9b.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/8/283aad898663c205f566e4d5a745d7d230641b9a.png)
