'NoneType' object has no attribute '__getitem__' - Tkinter : <p>I've taken a look through the existing questions, but I haven't been able to find a solution so far.</p>

<p>I'm new to the Python programming language and have started playing around with Tk, but keep receiving the following error message when trying to either 'get' a value (from a checkbox) or change a value of a label:</p>

<p>'NoneType' object has no attribute '<strong>getitem</strong>'</p>

<p>Below is an example of my code in which I receive the error when clicking a button</p>

<pre><code>from Tkinter import *

the_window = Tk()

the_window.title('Button Change Colour')

def change_to_red():
    colour_area['text']='Red'

colour_area = Label(the_window, bg='Grey', text = 'test', width = 40, height = 5).grid(row = 1, column = 1, padx = 5, pady = 5)
red_button = Button(the_window, text='Red', width = 5, command = change_to_red).grid(row = 2, column = 1)

the_window.mainloop()
</code></pre>

<p>I'm sure it's something small/silly, but would appreciate your help nonetheless! :)</p>
