Simple text editor using python and tkinter