title: Nesting grids and frames in tkinter and python
body: <p>I'm trying to set up a grid inside of a frame which is in a larger grid structure.  I've tried to distill it to the simplest version of the problem.</p>
  
  <pre><code>from tkinter import Tk, Frame, Label, Entry
  
  root = Tk()
  root.geometry('800x800')
  
  
  frame1 = Frame(root, width=400, height=400, background="Blue")
  frame2 = Frame(root, width=400, height=400, background="Red")
  
  frame1.grid(row=0, column=0)
  frame2.grid(row=1, column=1)
  
  label1 = Label(frame1,text='Label1')
  label1.grid()
  </code></pre>
  
  <p>Instead of placing the label inside of frame1, the label replaces the frame in the overall grid:</p>
  
  <p><a href="https://i.stack.imgur.com/TVf3E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TVf3E.png" alt="Sample output"></a></p>
  
  <p>I've looked at other examples, but I haven't been able to identify why they work and mine does not.  </p>