Why is my code returning "name 'Button' is not defined"?
<p>my code is giving me this error and I can't for the life of me figure out why it's telling me "NameError: name 'Button' is not defined." In Tkinter I thought Button was supposed to add a button?</p>

<pre><code>import Tkinter

gameConsole = Tkinter.Tk()
#code to add widgets will go below

#creates the "number 1" Button
b1 = Button(win,text="One")

gameConsole.wm_title("Console")
gameConsole.mainloop()
</code></pre>

<p>Use </p>

<pre><code>import Tkinter
b1 = Tkinter.Button(win,text="One")
</code></pre>

<p>or</p>

<pre><code>from Tkinter import Button
b1 = Button(win,text="One")
</code></pre>

python tkinter pycharm