When I make a combobox in tkinter and click the arrow to select a value then the font size of the values is very less. When I change the font size then the font size of text in the entry box becomes bigger but the font size of the values in the selection section stays the same. How can I change the size of the values in the selection section?
from tkinter import *
from tkinter import ttk
WIDTH, HEIGHT = 1000, 300
root = Tk()
root.geometry(f"{WIDTH}x{HEIGHT}")
def createDropBox(master, dropBoxData, fg, bg, fontSize):
ttk.Style().configure("style1.TCombobox", foreground = fg, background = bg)
dropBox = ttk.Combobox(master, values = dropBoxData, style = "style1.TCombobox", font = ("", fontSize), width = 60)
return dropBox
values = ["a", "b", "c", "d", "e", "f", "g", "h", "i"]
dropBox = createDropBox(root, values, "blue", "white", 20)
dropBox.place(x = 20, y = 20)
root.mainloop()