How to set font size of Entry in Tkinter How to set font size of Entry in Tkinter tkinter tkinter

How to set font size of Entry in Tkinter


from Tkinter import *root = Tk()EntryList = []for i in range(81):EntryList.append(Entry(root, font = "Helvetica 44 bold",justify="center",width=6,bg="#1E6FBA",fg="yellow",disabledbackground="#1E6FBA",disabledforeground="yellow",highlightbackground="black",highlightcolor="red",highlightthickness=1,bd=0))EntryList[i].grid(row=i/9,column=i%9,ipady=14)     root.mainloop()


You could make a variable

from Tkinter import *import tkinter.fontroot = Tk()EntryList = []for i in range(81):FontOfEntryList=tkinter.font.Font(family="Calibri",size=12)EntryList.append(Entry(root,font=FontOfEntryList,justify="center",width=6,bg="#1E6FBA",fg="yellow",disabledbackground="#1E6FBA",disabledforeground="yellow",highlightbackground="black",highlightcolor="red",highlightthickness=1,bd=0))EntryList[i].grid(row=i/9,column=i%9,ipady=14)     root.mainloop()