Python für Einheit
from tkinter import*
def phone():
if var1.get()==0:
lab1["text"]="557 12 36 94"
elif var1.get()==1:
lab1["text"]="579 84 15 76"
elif var1.get()==2:
lab1["text"]="577 02 41 76"
ob=Tk()
ob.title("telefonis nomrebis gamotana")
ob.geometry("550x450")
var1=IntVar()
var1=set(0)
r=Radiobutton(text="ana",width=5,height=1,variable=var1,value=0)
r1=Radiobutton(text="salo",width=5,height=1,variable=var1,value=1)
r2=Radiobutton(text="dima",width=5,height=1,variable=var1,value=2)
lab1=Label(width=10,height=5)
lab1.pack()
r.pack(anchor=W)
r1.pack(anchor=W)
r2.pack(anchor=W)
ob.mainloop()
Tough Tamarin