# How to create a Collapsible button in a python 3.7 GUI

**URL:** <https://discourse.slicer.org/t/how-to-create-a-collapsible-button-in-a-python-3-7-gui/12177>\
**Category:** Support\
**Created:** [June 23, 2020, 3:08pm UTC](https://discourse.slicer.org/t/how-to-create-a-collapsible-button-in-a-python-3-7-gui/12177 "2020-06-23T15:08:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlucox](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xlucox/32/6381_2.png) [@xlucox](https://discourse.slicer.org/u/xlucox)\
**Post date:** [June 23, 2020, 3:08pm UTC](https://discourse.slicer.org/t/how-to-create-a-collapsible-button-in-a-python-3-7-gui/12177/1 "2020-06-23T15:08:02Z")

</div>

Hi !!!

I’m developing an application in python 3.7 using qt and I would like to create a collapsible button as the used in 3D slicer (ctk.ctkCollapsibleButton()). I tried to download ctk but it seems to don’t have this class inside. Does anyone can help me?

Thanks.

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [June 23, 2020, 3:25pm UTC](https://discourse.slicer.org/t/how-to-create-a-collapsible-button-in-a-python-3-7-gui/12177/2 "2020-06-23T15:25:08Z")

</div>

The ctk pypi package is built off of an old version of CTK that is no longer supported. Slicer builds and python wraps CTK itself to provide that functionality. It is not currently available outside of Slicer.
