Making a Notepad using Tkinter ~PYTHON
CODE... from tkinter import * from tkinter . messagebox import showinfo 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 Document" , "*.*" ) ] ) if file == "" : file = None else : root . title ( os . path . basename ( file ) + " - Notepad" ) TextArea . delete ( 1.0 , END ) f = open ( file , "r" ) TextArea . insert ( 1.0 , f . read ( ) ) f . close ( ) def saveFile ( ) : global file if file == None : file = asksaveasfilename ( initialfile = "Untitled.txt" , ...