Jun-25-2020, 06:21 AM
When you define the label you have given a parent attribute of canvas1
labelTop=tk.Label(canvas1,text='Choose a program')but your buttons have no parent
button1=tk.Button(text='program1',command = prog) button2=tk.Button(text='program2',command=prog2)