title: Tkinter: how to get a string from a top-level entry?
body: <p>In tkinter, how can I <code>.get()</code> the entry from a top level window?</p>
  
  <pre><code>def logika(event):
      a=e.get()
  
  def pocetak(event):
      igra=Toplevel(glavni)
      igra.geometry("500x500+710+290")
  
      e=Entry(igra)
      e.pack()
  
      GumbIgra=Button(igra,text="Unos")
      GumbIgra.bind("&lt;Button&gt;",func=logika)
      GumbIgra.pack()
      return
  
  glavni=Tk()
  glavni.geometry("600x600")
  glavni.resizable(True,True)
  
  glavniGumb=Button(glavni,text="Za početak stisni me!",pady=10,padx=15)
  glavniGumb.config(font=("Arial",10))
  glavniGumb.bind("&lt;Button&gt;",func=pocetak)
  glavniGumb.pack()
  </code></pre>