Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- def gpa_counter():
- output.delete(0.0,END)
- listed_points=list((math.get(),python.get(),arch.get(),base.get(),startup.get(),management.get()))
- for i in listed_points:
- try:
- gpa=(int(i)-50)*0.06+1
- output.insert(END,f'{gpa}\n')
- except Exception as e:
- output.insert(END,"თქვენ არასწორად შეავსეთ ველები")
- break
- def one_by_one():
- output.delete(0.0,END)
- listed_points=list((math.get(),python.get(),arch.get(),base.get(),startup.get(),management.get()))
- for i in listed_points:
- if i!=None:
- try:
- gpa=(int(i)-50)*0.06+1
- output.insert(END,f'{gpa}\n')
- except Exception as e:
- pass
- math.delete(0,END)
- python.delete(0,END)
- arch.delete(0,END)
- base.delete(0,END)
- startup.delete(0,END)
- management.delete(0,END)
- def quit():
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement