Kivy--how to bind a function to a checkbox when activated
<p>I have a Python program in wich I use kivy's checkboxes.</p>

<p>Is there a way to let the program call a function the instant when the checkbox is disabled/enabled? please note, the active property wont work since this is only once, one would have to use a infinite while loop to check whether the user activated it wich would make everything complex.</p>

<p>so anything that can help here welcome</p>

<p>Thanks and regards</p>

<p>Cid-EL</p>

<p>You could do something like this:</p>

<pre><code>from kivy.uix.checkbox import CheckBox
</code></pre>

<h1>...</h1>

<pre><code>def do_something(checkbox, value):
    # Do something

checkbox = CheckBox()
checkbox.bind(active=do_something)
</code></pre>

python checkbox kivy