This code is letting me input a string, and that string is added to the dict \'d\'. However I want to use this functionality in a gui but when used with the gui I am missing som