# Buttons in custom modules

**URL:** https://discourse.slicer.org/t/buttons-in-custom-modules/29809
**Category:** Development
**Created:** [June 2, 2023, 6:46pm UTC](https://discourse.slicer.org/t/buttons-in-custom-modules/29809 "2023-06-02T18:46:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/patrick_li/32/66178_2.png) [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)
#### Post date: [June 2, 2023, 6:46pm UTC](https://discourse.slicer.org/t/buttons-in-custom-modules/29809/1 "2023-06-02T18:46:01Z")

</div>

Hello, I’m simply trying to create a custom module with some “Add” buttons that add elements to their corresponding lists. I used ExtensionWizard and Qt Designer to make the UI with the buttons. I didn’t use any coding, Python or otherwise, and am unsure how to add the functionality to the buttons.  
 ![Screenshot 2023-06-01 180157](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e73ed7be08724d4b7ce2ec6b4201979cc20f17a5.png)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 3, 2023, 2:22pm UTC](https://discourse.slicer.org/t/buttons-in-custom-modules/29809/2 "2023-06-03T14:22:16Z")

</div>

You’ll need to write python scripts to that connect to the signals generated by the UI elements. It’s not hard, just review the examples and the [python tutorials](https://www.slicer.org/wiki/Documentation/Nightly/Training#Tutorials_for_software_developers).
