title: Setting background color of a tkinter ttk frame
body: <p>I want to simply set a background color to the frame within the tkinter window.  The background color for the window was successfully set, but not for the frame inside. Simply entering <code>bg='color_name or color_code'</code> is not working.</p>
  <p>How can one set the background color of a ttk frame?</p>
  <p>In addition to this, is there a method to also change other widget options i.e.  the color, fonts of the tabs bar?</p>
  <p>I have tried using command <code>bg='Color_name or color_code'</code> and also tried using <code>frame_name=config(bg='color_name or color_code')</code>. Neither worked.</p>
  <pre><code>from tkinter import * 
  from tkinter import ttk 
  
  
  window = Tk() 
  window.title(&quot;Title Name&quot;) 
  window.config(bg='#FFFAFA')
  window.geometry('1024x800')
  
  
  menubar = Menu(window) 
  filemenu = Menu(menubar,tearoff=0)
  menubar.add_cascade(label='File',menu=filemenu)
  filemenu.add_command(label='Open')
  filemenu.add_command(label='Clear')
  filemenu.add_command(label='Save As')
  filemenu.add_separator()
  filemenu.add_command(label='Exit')
  
  
  helpmenu = Menu(menubar,tearoff=0)
  menubar.add_cascade(label='Help',menu=helpmenu)
  helpmenu.add_command(label='Precuations')
  helpmenu.add_command(label='Version Info')
  helpmenu.add_command(label='Technical Support')
  
  window.config(menu=menubar)
  
  rows = 0
  while rows&lt;50:
      window.rowconfigure(rows,weight=1)
      window.columnconfigure(rows, weight=1)
      rows +=1
  
  #creation of frame
  mainframe = ttk.Notebook(window,width=50)
  mainframe.grid(row=1,column=2,columnspan=45,rowspan=43,sticky='NESW')
  
  #create tabs within the frame
  tab1 = ttk.Frame(mainframe)
  mainframe.add(tab1, text=&quot;Tab1&quot;)
  
  
  tab2 = ttk.Frame(mainframe)
  mainframe.add(tab2, text=&quot;Tab2&quot;)
  
  
  tab3 = ttk.Frame(mainframe)
  mainframe.add(tab3, text=&quot;Tab3&quot;)
  
  tab4 = ttk.Frame(mainframe)
  mainframe.add(tab4, text=&quot;Tab4&quot;)
  
  tab5 = ttk.Frame(mainframe)
  mainframe.add(tab5, text=&quot;Tab4&quot;)
  
  window.mainloop()
  </code></pre>