So I am still learning programming and wanted to make a gui so that when I enter a text into an entry box it would write it to a txt file. When I run the code it doesnt thro