title: How to use an Entry contents in a different class?
body: <p>I hope this is not repetitive, it seems I'm one of the few people who prefers to use Tkinter as Tkinter, not as TK....
  So pretty much I'm using classes to make windows. The second window creates a user, but I'm having trouble using that value "username" in a different class.
  What am I missing?</p>
  
  <p>(Disclaimer, the windows are ugly, I'm focusing on making the functions work.)
  I've tried making the value username a global part of the <code>clicku()</code> function.... I've tried making "username" a function under <code>Startwindow</code> (with its own definition), I've tried pulling it directly (as shown here)... I've moved it around, tried to work with localities... I'm lost. Would making the entry its own class save this issue...???</p>
  
  <pre><code>from tkinter import *
  
  
  class Window(Frame):
  
      def __init__(self, master=None, *args, **kwargs):
          Frame.__init__(self,master,*args,**kwargs)
          self.pack()
          self.pack_propagate(0)
          self.labelone = Label(self, text = "Welcome to our class! Click start to begin")
          self.labelone.grid(row=1,column=1)
          self.buttonone = Button(self, text="start", command=click)
          self.buttonone.grid(row=2,column=1)
  
  
  class Startwindow(Frame):
  
      def __init__(self, master=None, *args, **kwargs):
          Frame.__init__(self,master,*args,**kwargs)
          self.grid(row=5,column=5)
          self.grid_propagate(0)
          self.text = Label(self, text = "What is your name?")
          self.text.grid(row=0,column=0)
          self.entry = Entry(self, width=15)
          self.entry.grid(row=1,column=0)
          self.buttontwo = Button(self, text="enter", command=clicku)
          self.buttontwo.grid(row=1,column=1)
          self.username = self.entry.get()
  
  
  
  class introwindow(Frame):
  
      def __init__(self, master=None,*args,**kwargs):
          Frame.__init__(self,master,*args,**kwargs)
          user = str(w2.username)
          self.grid()
          self.grid_propagate(0)
          self.a = Label(self, text = "Aki: ")
          self.a.grid(row = 0, column = 0)
          self.sp1 = Label(self, text = "Hi" + w2.username)
          self.sp1.grid(row = 0, column = 1)
          self.sp2 = Label(self, text = "Nice to meet you!")
          self.sp1.grid(row = 1, column = 1)
          self.talk = Entry(self, width = 15)
  
  
  def click():
      global w2
      w.destroy()
      w2 = Startwindow(root,width=500,height=500)
  
  
  def clicku():
      w2.destroy()
      w3 = introwindow(root,width=500,height=500)
  
  
  
  
  
  
  root = Tk()
  w = Window(root, bg="red",width=500,height=500)
  
  root.mainloop()
  </code></pre>
  
  <p>I'm just hoping to make username print in the <code>introwindow</code> as part of the <code>Label</code> <code>sp1</code>.</p>