title: Tkinter - NameError: name 'TopLevel' is not defined
body: <p>I am trying to use the TopLevel widget to create a sub window. 
  However I am getting this error when I attempt to use it:</p>
  
  <pre><code>NameError: name 'TopLevel' is not defined
  </code></pre>
  
  <p>I'm using Python 3.6, but I've tried this on 3.5 as well with the same result. 
  I am importing Tkinter with:</p>
  
  <pre><code>from tkinter import * 
  </code></pre>
  
  <p>but I also tried</p>
  
  <pre><code>import tkinter as tk
  </code></pre>
  
  <p>And here's the rest of the relevant code:</p>
  
  <pre><code>def __init__(self):
     self.root = Tk()
     self.teams = []
  
  def createTeamWindows(self):
      teamOneWindow = TopLevel(self.root)
      teamOneWindow.title(self.teams[0].name)
  </code></pre>