I created some labels in Tkinter like so:
Donor1bg=tkinter.Label(frame1, text=donorid_dict["donorid1"].strip("'"), font=("Calibri", 30), bg="#000000", padx=(3), pady=(3))
Donor1bg.grid_configure(padx=(20,0), pady=(10,0))
Donor1bg.grid(column=0, row=2)
Donor1=tkinter.Label(frame1, text=donorid_dict["donorid1"].strip("'"), font=("Calibri", 30))
Donor1.grid_configure(padx=(20,0), pady=(10,0))
Donor1.grid(column=0, row=2)
Then I have a button which will use this function as a command:
def down(startingpoint, donorid_dict):
if donorid_dict["donorid10"]=="":
tkinter.messagebox.showinfo(title="No Data", message="There is no more information to be displayed.")
else:
startingpoint=startingpoint+10
donorid_dict, bloodtype_dict, location_dict, organname_dict = displayinformation(startingpoint)
return startingpoint, donorid_dict, bloodtype_dict, location_dict, organname_dict
In the down
function, how can I alter what is displayed by the labels? I was able to change the dicts correctly, but then what?