title: Solving "TclError: Layout TLabelFrame not found"
body: <p>So I am trying to apply a simple style to a labelframe widget with the following code:</p>
  
  <pre><code>import sys
  if sys.version_info[0] == 2:  # Just checking your Python version to import Tkinter properly.
      import Tkinter as tk
      import ttk as ttk
  else:
      import tkinter as tk
      from tkinter.ttk import ttk as ttk
  
  root = tk.Tk()
  bls = ttk.Style()
  bls.configure('Black.TLabelFrame', background="#222222")
  
  dayframe = ttk.Labelframe(root, style='Black.TLabelFrame', height=200, width=150, relief=tk.SUNKEN, 
      text="Hello")
  dayframe.grid(row=1, column=1, padx=5)
  root.mainloop()
  </code></pre>
  
  <p>But when I run this code I get the error message: </p>
  
  <blockquote>
    <p>TclError: Layout Black.TLabelFrame not found</p>
  </blockquote>
  
  <p>I don't understand what I am doing wrong...</p>