title: Calling a variable from one function in another
body: <p>I have a class, in which two functions are present.</p>
  
  <p>I wish to access a variable created within one function from the other.</p>
  
  <p>Here is an example of what I'm trying to do:</p>
  
  <pre><code>def __init__(self, parent, controller):
      tk.Frame.__init__(self,parent)
  
      Message1 = None
      Keyword1 = None
      Keyword2 = None
  
  
      Message_Ent = tk.Entry(self, textvariable = Message1)
      Key1_Ent = tk.Entry(self, textvariable = Keyword1)
      Key2_Ent = tk.Entry(self, textvariable = Keyword2)
  
  
  def Main_Cipher(*args):
      #Need to use these variables:
      #Message1
      #Keyword1
      #Keyword2
  </code></pre>