Skip to content
Advertisement

How to select multiple checkbox then store values in a list? python

JavaScript

I have this sample code, I need to make multiple selections in that users list, after I hit OK, it stores checked value into another list named selected_users for later use.

For example, when I run this code, a checkbox window pops out, and I tick Anne,Bob, click OK. selected_users is now ['Anne','Bob']. And Window disappears

Advertisement

Answer

You can do this:

JavaScript

This will add the value to the list and when you hit Ok the window will disappear.

Adding more functionality to the program:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement