# Tab changed event in customized tabbed view

**URL:** <https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432>\
**Category:** Development\
**Tags:** python\
**Created:** [February 20, 2024, 6:45pm UTC](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432 "2024-02-20T18:45:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzhu](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Post date:** [February 20, 2024, 6:45pm UTC](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432/1 "2024-02-20T18:45:32Z")

</div>

With a customized tab view, I have several tabs in a layout.  
(See [Customized tabbed view](https://discourse.slicer.org/t/customized-tabbed-view/24375)  
Within each tab, there are a group of views. I need to place some action code when the active tab is changed. Help to capture this tab changed event is appreciated.

Bing from UCLA

---

<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 20, 2024, 8:09pm UTC](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432/2 "2024-02-20T20:09:17Z")

</div>

You can look up the child widget using `slicer.util.findChildren` function and connect your callback function to the relevant signal.

---

<div class="post-metadata">

**Author:** ![bzhu](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Post date:** [February 20, 2024, 11:55pm UTC](https://discourse.slicer.org/t/tab-changed-event-in-customized-tabbed-view/34432/3 "2024-02-20T23:55:20Z")

</div>

> [@lassoan](#):
>
> slicer.util.findChildren

Yes, the tab widget is found by this method. Thanks.
