In tkinter, is it possible to get the colours of the currently used palette, so that I can use them e.g. when drawing a rectangle on the canvas?
import tkinter as tk
root = tk.Tk()
root.tk_bisque() # change the palette to bisque
canvas = tk.Canvas(root, width=500, height=500)
canvas.create_rectangle(10, 10, 100, 100, fill='???') # What to enter here?
I know I can use e.g. 'bisque' as a colour name, however the documentation speaks of a database containing entries like 'activeBackground', 'highlightColor', etcetera. I want to know how to use those as colours for my canvas items, or alternatively simply how to get their rgb values at runtime.