title: Style not working in class for any object?
body: <p>Why doesn't my style change the background of any of these objects? I got annoyed and just assigned them to everything. Also why does it make two windows? I see that it's something to do with style being different then the style in the object's options... I feel like it's also with my class, am I suppose to <code>def _init_(self)</code> it? the class?</p>
  
  <pre><code>import tkinter as tk
  import tkinter.ttk as ttk
  
  
  style = ttk.Style()
  style.configure("color1.TFrame", foreground = "black", background = "red")    
  class main:
  
      parent = tk.Tk()
      n = ttk.Notebook(parent,style = "color1.TFrame")
      f1 = ttk.Frame(n,style = "color1.TFrame")   # first page tab
      f2 = ttk.Frame(n,style = "color1.TFrame")   # second page 2nd tab
      window = f1
      frame1 = ttk.Frame(window,style = "color1.TFrame")
      frame1.grid(row = 1, column = 1, padx = 200, pady = 150)
      frame2 = ttk.Frame(window)
      frame2.grid(row = 2, column = 1,padx = 200, pady = 150)
  
  main()
  </code></pre>