Please help me!
I have to make dictionary in py tkinter and i don't know how to do definition
this is my code:
from Tkinter import *
j=("slo", "ang", "nem")
def pretvori():
if(b.get()==j[0] and c.get()==j[1]):
slo_v_ang()
if(b.get()==j[0] and c.get()==j[2]):
slo_v_nem()
if(b.get()==j[1] and c.get()==j[0]):
ang_v_slo()
if(b.get()==j[1] and c.get()==j[2]):
ang_v_nem()
if(b.get()==j[2] and c.get()==j[0]):
nem_v_slo()
if(b.get()==j[2] and c.get()==j[1]):
nem_v_ang()
slo1=("ena","dva","tri","štiri","pet")
ang1=("one","two","three","four","five")
nem1=("eins","zwei","drei","vier","fünf")
def slo_v_ang():
if(a.get()==slo1[0] : s.set(str(ang1[0])))
okno=Tk()
okno.title('Slovar')
oznaka=Label(okno, text='Vnesi besedo')
oznaka.pack()
a=Entry(okno)
a.pack()
b=StringVar()
c=StringVar()
opti1=OptionMenu(okno, b, 'slo', 'ang', 'nem')
opti2=OptionMenu(okno, c, 'slo', 'ang', 'nem')
opti1.pack(fill=X)
opti2.pack(fill=X)
b.set('nem')
c.set('ang')
pret=Button(okno,text='Pretvori',command=pretvori)
pret.pack()
s=StringVar()
d=Label(okno,textvariable=s)
d.pack()
okno.mainloop()