I tried it, and indeed it does work.
if you need it in a file to try, create a file named trycolor.py
and place this code in the file:
trycolor.py:
if you need it in a file to try, create a file named trycolor.py
and place this code in the file:
trycolor.py:
import tkinter root = tkinter.Tk() xx = tkinter.Button(root, text='Hello', bg="white", fg="blue") xx.pack() root.mainloop()Then run it (from command line) using:
python trycolor.py