Simple mini-projects for practice

#simple demo notepad from tkinter import * from tkinter .messagebox import showinfo from tkinter .filedialog import askopenfilename,asksaveasfilename import os root=Tk() def undo_edit(): Textarea.event_generate(‘<<Undo>>’) def cut_edit(): Textarea.event_generate(‘<<Cut>>’) def copy_edit(): Textarea.event_generate(‘<<Copy>>’) def paste_edit(): Textarea.event_generate(‘<<Paste>>’) ”’def delete_edit(): pass”’ ”’def select_edit(): Textarea.event_generate(‘<<Sel>>’)”’ def select_edit(event=None): Textarea.tag_add(‘sel’, ‘1.0’, ‘end’) return “break” def new_file(): global fil root.title(‘Untitled – Notepad’) fil=None Textarea.delete(1.0,END) def … Read more Simple mini-projects for practice