title: How do I save the data into a variable
body: <p>I still new in python and have a question here: how could I store the variables outside and to use it later? </p>
  
  <p>I have already created a class and in that class can store variables, for example, the <code>temp_username</code>, how do I get the <code>temp_username</code> and use it outside of the class?</p>
  
  <pre><code>def read_username(self):
      temp_username = self.username_entry.get()
      temp_username1 = self.username_entry1.get()
      if temp_username == '':
          print("No valid name")
          return
      else:
          self.name_valid = True
          self.username = temp_username
          self.username1 = temp_username1
  </code></pre>