This is my Notepad app and in the ChangeSize() function I am trying to change the size of the font and the function is activated on the press of the Label Size in the bottom, but its not doing anything!
Can someone Tell me why the ChangeSize() function is not working?
from tkinter import Tk, scrolledtext, Menu, filedialog, END, messagebox, simpledialog
import os
root = Tk(className=" TEXT EDITOR")
root.title("Untitled.txt - TEXT EDITOR")
F_size = 20
F_family = "Ubuntu Mono"
F_weight = "bold"
F_font = (F_family, F_size, F_weight)
textArea = scrolledtext.ScrolledText(root, width=80, height=30, font=F_font)
#Functions
def ChangeSize():
global F_size
F_size = 50
# Menu Options
helpMenu = Menu(menu)
menu.add_cascade(label="Text Options", menu=helpMenu)
helpMenu.add_command(label="Size", command=ChangeSize)