Horje
how to get checkbutton from a list Code Example
how to get checkbutton from a list
from Tkinter import *

root = Tk()    

users = ['Anne', 'Bea', 'Chris']

for x in range(len(users)):
    l = Checkbutton(root, text=users[x][0], variable=users[x])
    print "l = Checkbutton(root, text=" + str(users[x][0]) + ", variable=" + str(users[x])
    l.pack(anchor = 'w')

root.mainloop()




Python

Related
python calendar Code Example python calendar Code Example
removing duplicates using json python Code Example removing duplicates using json python Code Example
python check if list Code Example python check if list Code Example
find all element in list python Code Example find all element in list python Code Example
python format string Code Example python format string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6