I have been looking through multiple websites, which only give me a half satisfactory answer, how would I colour each part of of a Tkinter OptionMenu Widget?
from tkinter import *
root = Tk()
text = StringVar()
fr = Frame (root,bg="yellow")
menu = OptionMenu (fr, text, "hi", "there")
menu.grid (pady=50, padx=50)
# Pretty colouring goes here
# Or ugly yellow, I don't mind
menu ["menu"] ["bg"] = "yellow"
menu ["bg"] = "yellow"
menu ["activebackground"] = "green"
All that I had to do was set the
highlightthickness option to
This get's rid of the ugly border around the drop down menu.