import tkinter as ttk from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg root = ttk.Tk() fig = Figure(facecolor='#CCCCFF') canv = FigureCanvasTkAgg(fig, master=root) canv._tkcanvas.pack( side=ttk.BOTTOM, fill=ttk.BOTH, expand=ttk.YES) root.mainloop() 

I want in Figure(facecolor='#CCCCFF') instead of #CCCCFF transmit the color that the OS uses by default so that the color application is combined with the OS applications. How can I get a system color?

  • And if you do not transmit facecolor at all? just fig = Figure () - spirit
  • what is the system color? system color of what? - Sugar Sugar
  • if facecolor does not transmit at all, then there will be a dark gray color, which by default uses tkinter. And the system color, which is used in the windows frame - kyrsant

0