A very bad ms word clone.Read the whole markdown to understand the code.
git clone https://github.com/shourgamer2/textedit
Tkinter
pip install tkinter
Pyinstaller
pip install pyinstaller
import all the packages needed
# import the packages
from tkinter import *
from tkinter import filedialog
from tkinter import font
Config the window
# config the window
root = Tk()
root.title('textedit')
root.geometry("1200x660")
Create scroll bar
# create our scroll bar
text_scroll = Scrollbar(my_frame)
text_scroll.pack(side=RIGHT, fill=Y)
Create text bot
# create text box
my_text = Text(my_frame, width=97, height=25, font=("Helvetica", 16), selectbackground="red", selectforeground="black", undo=True, yscrollcommand=text_scroll.set)
my_text.pack()
Configure scroll bar
# configure our scrollbar
text_scroll.config(command=my_text.yview)
create menu
# create menu
my_menu = Menu()
root.config(menu=my_menu)
Add file menu
# Add file menu
file_menu = Menu(my_menu, tearoff=False)
my_menu.add_cascade(label="File", menu=file_menu)
file_menu.add_command(label="Exit", command=root.quit)
Add status bar
# Add Status bar to bottom of App
status_bar = Label(root, text='Ready ', anchor=E)
status_bar.pack(fill=X, side=BOTTOM, ipady=5)
root.mainloop()