title: global name 'display' is not found
body: <p>I'm currently designing a code for a troubleshooter. My problem is that when I press &quot;other&quot;, there should be a data entry form label, which there is. But when i type something into it and press continue, it shows an error that says &quot;</p>
  <pre><code>Exception in Tkinter callback
  Traceback (most recent call last):
  File &quot;C:\Python33\lib\tkinter\__init__.py&quot;, line 1482, in __call__
  return self.func(*args)
  File&quot;R:\ICT\ControlledAssessment_15_17\Computing\Unit3\RiddhiSharma\FinalTroubleshooter.py&quot;, line 15, in click
  display.insert(END, key)
  NameError: global name 'display' is not defined
  </code></pre>
  <p>I think the problem in my actual code is here:</p>
  <pre><code>def click():
      display.insert(END, key)
      output.delete(0.0, END)
      try:
          entered_text=entry.get()
          definition = my_glossary[entered_text]
      except:
          definition = &quot;There is no entry for this word.&quot;
          output.insert(END, definition)
  </code></pre>