Skip to content

Instantly share code, notes, and snippets.

@billy3321
Created December 19, 2008 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save billy3321/37915 to your computer and use it in GitHub Desktop.
Save billy3321/37915 to your computer and use it in GitHub Desktop.
for user_name in USERS_LIST:
user_name_box= eval(user_name + "_box")
user_name_box=gtk.CheckButton(user_name)
dlg.vbox.pack_start(user_name_box,True,True,2)
dlg.vbox.show_all ()
ret = dlg.run ()
for user_name in USERS_LIST:
user_name_box= eval(user_name + "_box")
if user_name_box.get_active():
print "yes",user_name
@pluscda
Copy link

pluscda commented Jul 9, 2014

for user_name in USERS_LIST:
user_name_box= eval(user_name + "_box")
user_name_box=gtk.CheckButton(user_name)
dlg.vbox.pack_start(user_name_box,True,True,2)

dlg.vbox.show_all ()

ret = dlg.run ()
for user_name in USERS_LIST:
 user_name_box= eval(user_name + "_box")
 if user_name_box.get_active():
  print "yes2",user_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment