title: Having some trouble using geometry manager .grid in tkinter
body: <p>I have some code here and I can't figure out why everything is getting smashed together. Also with the function I have, it isn't getting the actual text that I type into the Text widget. I'm a semi-newbie to Python and have been developing this game for a while.</p>
  <pre><code>def comments():
      root = tk.Tk()
      root.title(&quot;Comments&quot;)
      root.geometry(&quot;300x200+300+300&quot;)
      var = tk.IntVar()
      
      top_frame = tk.Frame(root, bg=&quot;red&quot;, width=300, height=50)
      name_label = tk.Label(top_frame, text=&quot;Username&quot;, bg='red', fg=&quot;yellow&quot;, font=(&quot;arial, 17&quot;), justify=LEFT)
      name_entry = tk.Entry(top_frame)
      comment_frame = tk.Frame(root, bg=&quot;yellow&quot;, width=300, height=100, relief=GROOVE)
      comment_entry = tk.Text(comment_frame, bd=2, relief=SUNKEN, width=35, height=5)
      comment = comment_entry.get('1.0', 'end-1c')
      def save_comment():
          #if like_dislike == 0:
              #dislikes =+ 1
              #opinion = dislike
          #elif like_dislike == 1:
              #likes =+ 1
              #opinion = like
          
          now = datetime.datetime.now()
          if now.hour &gt; 12:
              hour = now.hour-12
              meridiem = 'pm'
          else:
              hour = now.hour
              meridiem = 'am'
              
          timestamp = str(now.month)+'/'+str(now.day)+'/'+str(now.year)+'\t'+str(hour)+':'+str(now.minute)+':'+str(now.second)
          with open(comments_file, 'a') as file:
              file.write(comment + timestamp + meridiem + '\r\n\n')
          exit_comments = tk.messagebox.askyesno('Exit', 'Return to About Page?')
          if exit_comments == True:
              root.destroy()
      like_dislike_frame = tk.Frame(root, relief=GROOVE, bg='green', width=300, height=50)
      #like_button = tk.Button(like_dislike_frame, text=&quot;Like&quot;).grid(row=2, sticky=W, padx=&quot;6px&quot;)
      #dislike_button = tk.Button(like_dislike_frame, text=&quot;Dislike&quot;).grid(row=2)
      like_button = tk.Checkbutton(like_dislike_frame, text=&quot;Like&quot;, font=(&quot;arial, 12&quot;), onvalue=1,offvalue=0, variable=var, bg='green', fg='yellow')
      dislike_button = tk.Checkbutton(like_dislike_frame, text=&quot;Dislike&quot;, font=(&quot;arial, 12&quot;), onvalue=1,offvalue=0, variable=var, bg='green', fg='yellow')
      submit_button = tk.Button(like_dislike_frame, text=&quot;Submit&quot;, command=save_comment)
      top_frame.grid(row=0, column=0, columnspan=3)
      name_label.grid(row=0, sticky=W, padx=&quot;5px&quot;)
      name_entry.grid(row=0, sticky=E, padx=&quot;5px&quot;)
      comment_frame.grid(row=1, column=0, columnspan=3)
      comment_entry.grid(row=1, column=0, sticky=E)
      like_dislike_frame.grid(row=2, columnspan=2)
      like_button.grid(row=2, sticky=W, padx=&quot;6px&quot;)
      dislike_button.grid(row=2, padx=&quot;6px&quot;)
      submit_button.grid(row=2, sticky=E)
      
      root.mainloop()**
  </code></pre>