title: How to create entry inputs in a toplevel window
body: <p>i have a problem and can't get my head around it. How to create a child window on pressing a button using tkinter in python were I can entry values like for example:</p>
  
  <pre><code>import tkinter
  root = Tk()
  Button(root, text='Bring up Message', command=Window).pack()
  root.mainloop()
  
  def messageWindow():
  win = Toplevel()
  --------&gt;calculate------
  Label(win, text=message).pack()
  Button(win, text='OK', command=win.destroy).pack()
  </code></pre>
  
  <p>and on the message window i would like to have two entry fields were I can enter a and b and afterwards it should calc a+b and give me the result.</p>
  
  <p>Thank you.</p>