def calculategrade():
grade=float(grade.get())
grade1=float(grade1.get())
grade2=float(grade2.get())
grade3=float(grade3.get())
grade4=float(grade4.get())
grade5=float(grade5.get())
grade6=float(grade6.get())
grade7=float(grade7.get())
grades=grade+grade1+grade2+grade3+grade4+grade5+grade6+grade7
lableresult=Label(myGUI, text="TOTAL GRADES"%grades).grid(row=19,column=1)
return
def calculategrade():
button1=Buton(myGUI,text="TOTAL GR", command=calculategrade, bd=1, bg="blue", fg="red", font="impact 14", width=12, height=1, pady=12, padx=12).grid(row=19,column=0)
#button2=Buton(text="TOTAL CR", command=calculatecredit, bd=1, bg="blue", fg="red", font="impact 14", width=12, height=1, pady=12, padx=12).grid(row=20,column=0)
#button3=Buton(text="GPA", command=calculategpa, bd=1, bg="blue", fg="red", font="impact 14", width=12, height=1, pady=12, padx=12).grid(row=21,column=0)
myGUI.mainloop()
Ебтвою