Here's the code:
c = len(clientlist)
for x in range(1, c):
Checkbutton(root2, text=clientlist[x], onvalue=1).grid(row=row, column=0, sticky=W)
Now, what I want to know, is how do I check if any of the checkboxes are checked. Since I can't figure out a way to give a dynamic variable to the checkbuttons. (Example: checkbox1, checkbox2, etc.)
Basically I just need to find a way to get the state from every generated checkbox - I can't figure it out.
I assume you use Tkinter. Try this:
And if your intention was to skip the first element of the list as the code seems suggest add after first line: