I got widget list of frame with frame.winfo_children(). Now I need to get that checkbutton's value.Children List:
[<tkinter.Label object .!toplevel2.!labelframe.!label>, <tkinter.Entry object .!toplevel2.!labelframe.!entry>, <tkinter.Entry object .!toplevel2.!labelframe.!entry2>, <tkinter.Checkbutton object .!toplevel2.!labelframe.!checkbutton>]
What I tried :
checkbuttonwidget.get() , checkbuttonwidget.cget('variable')
How can I get its value? And is there any option to use if command for split these children?
For example:
for wid in frame.winfo_children():
if wid == LABEL(option?):
print('yes its a label')
elif wid == CheckButton(option?):
print('Its a CheckButton')