# How to receive tab control event in Python mode

**URL:** <https://discourse.processing.org/t/how-to-receive-tab-control-event-in-python-mode/28944>\
**Category:** Processing.py\
**Created:** [March 29, 2021, 10:26am UTC](https://discourse.processing.org/t/how-to-receive-tab-control-event-in-python-mode/28944 "2021-03-29T10:26:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 29, 2021, 8:51pm UTC](https://discourse.processing.org/t/how-to-receive-tab-control-event-in-python-mode/28944/2 "2021-03-29T20:51:22Z")

</div>

> [@uraich](#):
>
> What do I have to do to capture these control events in Python mode?

> [@How to active ControlEvent in ControlP5 - python Mode?](https://discourse.processing.org/t/how-to-active-controlevent-in-controlp5-python-mode/1113/6):
>
> """ ControlP5::addListener() (v1.1) GoToLoop (2018-Jun-20) https://Discourse.Processing.org/t/ how-to-active-controlevent-in-controlp5-python-mode/1113/6 """ add\_library('controlP5') bg = 0200 def setup(): size(400, 300) global slider slider = ControlP5(this).\ addSlider('slider').\ setSize(width\>\>1, 20).\ setPosition(width\>\>2, height\>\>1).\ setRange(0, 0xff).\ setValue(bg).\ addListener(sliderListe…

---

_[View the full topic](https://discourse.processing.org/t/how-to-receive-tab-control-event-in-python-mode/28944)._
