Notepad using Python
from tkinter import * import tkinter.messagebox as tmsg from tkinter.filedialog import askopenfilename, asksaveasfilename import os def newFile (): global file root.title( "Untitled-Notepad" ) file = None TextArea.delete( 1.0 , END) def openFile (): global file file =askopenfilename( defaultextension = ".txt" , filetypes =[( "All Files" , "*.*" ), ( "Text Documents" , "*.txt" )]) if file == "" : file = None else : root.title(os.path.basename( file )+ "- Notepad by Elalita" ) TextArea.delete( 1...