from tkinter import* def urob(): a=int(vstup1.get()) b=int(vstup2.get()) c=int(vstup3.get()) if a>b: a,b=b,a if b>c: b,c=c,b if a>b: a,b=b,a vystup1.insert(0,str(a)+"; "+str(b)+"; "+str(c)+"; ") root=Tk() root.title("02-program-2A") text1=Label(root,text="GTV 10.10.2022") text1.grid(row=0,column=0) text2=Label(root,text="a = ") text2.grid(row=1,column=0) text3=Label(root,text="b = ") text3.grid(row=2,column=0) text4=Label(root,text="c = ") text4.grid(row=3,column=0) text5=Label(root,text="Výsledok = ") text5.grid(row=4,column=0) vstup1=Entry(root,width=10) vstup1.grid(row=1,column=1) vstup2=Entry(root,width=10) vstup2.grid(row=2,column=1) vstup3=Entry(root,width=10) vstup3.grid(row=3,column=1) vystup1=Entry(root,width=10) vystup1.grid(row=4,column=1) tlac1=Button(root,text="Ukonči",width=10,command=root.destroy) tlac1.grid(row=5,column=0) tlac1=Button(root,text="Urob",width=10,command=urob) tlac1.grid(row=6,column=0) root.mainloop()