# Edit UI file for segmentation editor effect

**URL:** https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073
**Category:** Development
**Created:** [February 19, 2021, 2:46am UTC](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073 "2021-02-19T02:46:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)
#### Post date: [February 19, 2021, 2:46am UTC](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073/1 "2021-02-19T02:46:34Z")

</div>

Hi,

I started using 3D Slicer a couple of days ago and I’m really excited for the things it can do.  
I created a scripted segment editor effect and I was wondering whether I can edit the ui using the same developer options explained in slide 36 in [PerkLabBootcamp/day3\_2\_SlicerProgramming.pptx at master · PerkLab/PerkLabBootcamp · GitHub](https://github.com/PerkLab/PerkLabBootcamp/blob/master/Doc/day3_2_SlicerProgramming.pptx)

I’m still struggling a bit with the association of the ui file with the logic. After checking the plugin made for the AIAA server in NVIDIA, it seems a big chunk of that effect was created by the Wizard, right?

I’ll really appreciate your reply,

Best,

Andres

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 19, 2021, 3:32am UTC](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073/2 "2021-02-19T03:32:47Z")

</div>

Most segment editor effects create the user interface by Python scripting, but if you need more than just a few widgets then it is worth using a .ui file. I think the only two examples for this are these:

- [Slicer-SurfaceWrapSolidify/SegmentEditorWrapSolidify/SegmentEditorWrapSolidifyLib at master · sebastianandress/Slicer-SurfaceWrapSolidify · GitHub](https://github.com/sebastianandress/Slicer-SurfaceWrapSolidify/tree/master/SegmentEditorWrapSolidify/SegmentEditorWrapSolidifyLib)
- [ai-assisted-annotation-client/slicer-plugin/NvidiaAIAA/SegmentEditorNvidiaAIAALib at master · NVIDIA/ai-assisted-annotation-client · GitHub](https://github.com/NVIDIA/ai-assisted-annotation-client/tree/master/slicer-plugin/NvidiaAIAA/SegmentEditorNvidiaAIAALib)

You can either create new segment editor effect using the Extension wizard and update it to use a .ui file (based on the two above modules as examples), or clone one of the two modules above and rename and modify the files to fit your needs.

---

<div class="post-metadata">

### Author: ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)
#### Post date: [February 19, 2021, 9:22am UTC](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073/3 "2021-02-19T09:22:36Z")

</div>

Many thanks for your quick reply, I appreciate it.
