# Python command tooltips

**URL:** <https://discourse.slicer.org/t/python-command-tooltips/40279>\
**Category:** Feature requests\
**Tags:** python\
**Created:** [November 19, 2024, 10:12pm UTC](https://discourse.slicer.org/t/python-command-tooltips/40279 "2024-11-19T22:12:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aidan](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Aidan](https://discourse.slicer.org/u/Aidan)\
**Post date:** [November 19, 2024, 10:12pm UTC](https://discourse.slicer.org/t/python-command-tooltips/40279/1 "2024-11-19T22:12:08Z")

</div>

The [current recommendation](https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-find-a-python-function-for-any-slicer-features) for users wishing to learn how to Python script Slicer operations that they are already familiar with in the GUI is rather convoluted and time consuming. It involves searching the Slicer GitHub repository for strings from the relevant field in the GUI.

A vastly more user-friendly method (employed by Blender and other software) is to provide an optional feature that enables ‘tool tips’, where hovering the cursor over any interactive component of the GUI results in a tool tip window displaying the associated underlying Python variable.

 ![Screenshot 2024-11-19 at 10.55.27 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/a/ba1a3d398dc6792a87895d26e0ab7695675f8a66.jpeg)

Alternatively, having an option for all GUI interactions to be printed to the Python interpreter window in Slicer (like in FreeCAD, for example) may be even more convenient since it would allow the user to copy and paste Python commands into their scripts.

---

<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:** [November 19, 2024, 10:36pm UTC](https://discourse.slicer.org/t/python-command-tooltips/40279/2 "2024-11-19T22:36:35Z")

</div>

I think everyone agrees this would be great 👍

But it’s not clear how it would be implemented for Slicer. Suggestions welcome.
