title: Why does Tkinter frame resize when text box is added to it?
body: <p>With this code, the window is 500 by 500, which is what I'm going for:</p>
  
  <pre><code>from tkinter import *
  root = Tk()
  
  frame = Frame(root, width=500, height=500)
  
  frame.pack()
  root.mainloop()
  </code></pre>
  
  <p>When I add a text box to the frame, though, it shrinks to just the size of the text box:</p>
  
  <pre><code>from tkinter import *
  root = Tk()
  
  frame = Frame(root, width=500, height=500)
  
  text = Text(frame, width=10, height=2) # THESE TWO
  text.pack()                            # LINES HERE
  
  frame.pack()
  root.mainloop()
  </code></pre>
  
  <p>Why does this happen, and how can I prevent it from happening?</p>