Source Code:-
from tkinter import *
from tkinter import scrolledtext
from textblob import TextBlob
root = Tk()
root.geometry("500x550+0+0")
root.title("Grammar Checker with TextBlob")
root.resizable(False, False)
def check_grammar():
text_content = text1.get("1.0", "end-1c").strip()
text2.config(state="normal")
obj = TextBlob(text_content)
done = obj.correct()
text2.insert(END, done)
text2.config(state="disabled")
text1 = scrolledtext.ScrolledText(root, wrap='word', height=10, width=50)
text1.pack()
btn = Button(root, text="Check Grammar", command=check_grammar)
btn.pack(padx=10, pady=10)
text2 = scrolledtext.ScrolledText(root, wrap='word', height=10, width=50, state="disabled")
text2.pack()
root.mainloop()
--------------------------------------------------------------------------------------------------------------------------------------------------------
Python Module Playlist :- • Playlist