class UsrApp():
df=None
def __init__(self):
self.root=Tk()
#checkbutton instantiations
df=pd.read_json('Email_Addresses/emailaddresses.json')
for k,v in df.items():
self.checkbutton_create(k)
def checkbutton_create(self,txt):
self.wdgt_var = BooleanVar()
self.wdg_checkbutton=tkinter.Checkbutton(master=self.frm_checkbuttons,text=txt,variable=self.wdgt_var)
self.wdg_checkbutton.pack(side='left',expand=YES,fill=X)