I want to Increase the Label Font Size of my GUI. I tried the way I attached below. But it that raises an error. What I tried so far is the code below. The error is
Traceback (most recent call last):
File "C:/Users/kobinath/PycharmProjects/pythonProject4/ex.py", line 123, in <module>
style = root.Style()
File "C:\Users\kobinath\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 2345, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'Style**
root = Tk()
style = root.Style()
style.configure(
"BW.TLabel",
foreground="black",
background="white",
font="Helvetica",
fontsize=12
)
tk.Label(root, text="Student ID",style="BW.TLabel").place(x=400, y=5)