title: Changing the text on a label
body: <p>I am having trouble with using a key binding to change the value of a label or any parameter.
  This is my code:</p>
  <pre><code>from tkinter import*
  
  class MyGUI:
    def __init__(self):
      self.__mainWindow = Tk()
      #self.fram1 = Frame(self.__mainWindow)
      self.labelText = 'Enter amount to deposit'
      self.depositLabel = Label(self.__mainWindow, text = self.labelText)
      self.depositEntry = Entry(self.__mainWindow, width = 10)
      self.depositEntry.bind('&lt;Return&gt;', self.depositCallBack)
      self.depositLabel.pack()
      self.depositEntry.pack()
          
      mainloop()
      
    def depositCallBack(self,event):
      self.labelText = 'change the value'
      print(self.labelText)
      
  myGUI = MyGUI()
  </code></pre>
  <p>When I run this, I click the entrybox and hit enter, hoping that the label will change value to 'change the value'. However, while it does print that text, the label remains unchanged.</p>
  <p>From looking at other questions on similar problems and issues, I have figured how to work with some of this outside a class, but I'm having some difficulties with doing it inside a class.</p>