I tried many solutions, but nothing worked to change the font and colors of the dropdown menu part of the Tkinter Combobox element.
See
I changed the entryfield and dropbownbutton colors and font, but how can I change the dropdown part?
I create the Combobox element via:
keuze = tk.StringVar()
keuzes = ['keuze1', 'keuze2', 'keuze3', 'keuze4', 'keuze5']
keuzebox = ttk.Combobox(root, values=keuzes, font=font)
keuzebox.pack(side='top', padx=2, pady=2)
And changed the colors of the entryfield en dropdown button via:
combostyle.theme_create('combostyle', parent='alt',
settings = {'TCombobox':
{'configure':
{'foreground' : colorinput['foreground'],
'selectforeground' : colorinput['background'],
'selectbackground' : colorinput['foreground'],
'fieldbackground' : colorinput['background'],
'arrowcolor' : colorinput['foreground'],
'background' : colorinput['background']
}
}
}
)
combostyle.theme_use('combostyle')
I hope there is a solution.
Thanks.