# GUI using markups module

**URL:** <https://discourse.slicer.org/t/gui-using-markups-module/35002>\
**Category:** Development\
**Tags:** python, markups\
**Created:** [March 21, 2024, 8:43am UTC](https://discourse.slicer.org/t/gui-using-markups-module/35002 "2024-03-21T08:43:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkraaijveld](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rkraaijveld](https://discourse.slicer.org/u/rkraaijveld)\
**Post date:** [March 21, 2024, 8:43am UTC](https://discourse.slicer.org/t/gui-using-markups-module/35002/1 "2024-03-21T08:43:18Z")

</div>

Hi there!

I’m trying to add the markups module into my own module, particularly the ruler button. I’ve worked with the segment editor widget before, but I can’t seem to find as much information about the markups module. (Also, I’m not that familiar with C++). Could someone share some python code with me that allows me to import the markups module into my module?

Thanks!

---

<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:** [March 23, 2024, 3:16pm UTC](https://discourse.slicer.org/t/gui-using-markups-module/35002/2 "2024-03-23T15:16:52Z")

</div>

An entire module cannot be imported into another module, but a module can use any other modules and can add use widgets provided by other modules.

Reusable widgets provided my Markups module are available [here](https://github.com/Slicer/Slicer/tree/main/Modules/Loadable/Markups/Widgets). These widgets should also be available in Qt Designer, so that you can just drag-and-drop them into your module GUI. If you describe specifically what functionality you need then we may be able to recommend GUI widgets that can be used.
