Hi I am trying to loop through a child widgets of a frame and store the values of the entry and checkbutton widgets into a list. It seems to work for the entrys but the checkbutton I get an error. If you could help that would be much appreciated thanks.
for child in top.winfo_children():
if child.winfo_class() == 'Entry':
mylist.append(child.get())
elif child.winfo_class() == 'Checkbutton':
mylist.append(child.get())
I am getting an error here:
mylist.append(child.get())
The error is :
mylist.append(child.get())
AttributeError: 'Checkbutton' object has no attribute 'get'