have a difficulty using dictionaries to translate normal text to morse code : ^
actually i´m writing a program that translate normal text to Morse code 
and i´ve written the core program that translate single letters to morse code but i´m still can´t figure out how to translate whole words and text here´s the code that i´ve written i´ve just started python 2 weeks ago so i´m somehow just a beginner 

   

    
    from tkinter import *



    #key down function
    def click():
        entered_text=textentry.get() #this wil collect the text from the text entry box
        outpout.delete(0.0, END)
        try:
            definition = my_dictionary[entered_text]
        except:
            definition= "sorry an error occured"
        outpout.insert(END, definition)    
        


    #### main
    window = Tk()
    window.title("THIS IS A SIMPLE TITLE")
    window.configure(background="yellow")



    [here´s the gui app][1]

    #create label
    Label (window,text="Enter a text here.", bg="YELLOW", fg="BLACK", font="arial 30 bold italic" ) .grid(row=1, column=0, sticky=W)

    #create a text entry box
    textentry= Entry(window, width=20, bg="WHITE")
    textentry.grid(row=2, column=0, sticky=W)

    #add a submit button
    Button(window, text="SUBMIT", width=6, command=click) .grid(row=3 ,column=0, sticky=W)

    #create another label
    Label (window,text="THE ENCRYPTED TEXT IS:", bg="YELLOW", fg="BLACK", font="arial 10 bold" ) .grid(row=4, column=0, sticky=W)

    #create a text box
    outpout = Text(window, width=75, height=6, wrap=WORD, bg="WHITE")
    outpout.grid(row=5, column=0, columnspan=2, sticky=W) 

    #the dictionary
    my_dictionary = {
        "A" : ".-",
        "B" : "-...",
        "C" : "-.-.",
        "D" : "-..",
        "E" : ".",
        "F" : "..-.",
        "G" : "--.",
        "H" : "....",
        "I" : "..",
        "J" : ".---",
        "K" : "-.-",
        "L" : ".-..",
        "M" : "--",
        "N" : "-.",
        "O" : "---",
        "P" : ".--.",
        "Q" : "--.-",
        "R" : ".-.",
        "S" : "...",
        "T" : "-",
        "U" : "..-",
        "V" : "...-",
        "W" : ".--",
        "X" : "-..-",
        "Y" : "-.--",
        "Z" : "--..",
        " " : "/"
        }
    #run the main loop
    window.mainloop()


  [1]: https://i.stack.imgur.com/qme59.png