I have six different buttons in the Tkinter GUI each having different colors. I am able to visualize them with anaconda on Windows 10. But I am not able to visualize those buttons with the same Anaconda-Navigator on a Mac OS. I am not able to figure out why?
The python code for the buttons is as follows:
b1 = Button(root, text="Elbow Method", command=plot_elbow, bg="green", fg="white").pack(side = LEFT)
b2 = Button(root, text="K-Means Clustering", command=plot_kmeans, bg="blue", fg="white").pack(side = LEFT)
b3 = Button(root, text="Batsmen who scored 4 or more Hundreds", command=plot_hundreds, bg="#D35400", fg="white").pack(side = LEFT)
b4 = Button(root, text="Runs Scored by Various Players", command=plot_runs, bg="#117A65", fg="white").pack(side = LEFT)
b5 = Button(root, text="Best Batsmen", command=plot_best_batsmen, bg="#34495E", fg="white").pack(side = LEFT)
b6 = Button(root, text="Stop", command=root.destroy, bg="red", fg="white").pack(side = BOTTOM)
My expected output is 6 buttons with each having different background colors. Whereas, it's displaying 6 buttons with all of them having white backgrounds no matter what color I use.
So, can anyone please help me in solving this issue?