title: Button Layout with Tkinter?
body: <p>I want to make my buttons a 2 x 2 grid on the bottom of the window with a canvas above them but the buttons always seem to stack weird when I use .pack(side = whatever). </p>
  
  <p>A major thing I also want the buttons and canvas to have relative size i.e. % so that whenever the window is resized the buttons still make up the right area. </p>
  
  <p>I am not sure how to do this being new to tkinter and any help is appreciated.</p>
  
  <pre><code>   import tkinter
  from tkinter import *
  
  code = Tk()
  
  def LAttack():
      print(something);
  def HAttack():
      print(something);
  def FField():
      print(something);
  def Heal():
      print(something);
  def Restart():
      print(something);
  
  Attack1 = tkinter.Button(code,text = ("Light Attack"), command = LAttack)
  Attack1.pack(side = LEFT)
  Attack2 = tkinter.Button(code,text = ("Heavy Attack"), command = HAttack)
  Attack2.pack(side = RIGHT)
  Defense1 = tkinter.Button(code,text = ("Forcefield"), command = FField)
  Defense1.pack(side = LEFT)
  Defense2 = tkinter.Button(code,text = ("Heal"), command = Heal)
  Defense2.pack(side = RIGHT)
  Restart1 = tkinter.Button(code,text = ("Restart"), command = Restart)
  Restart1.pack(side = TOP)
  
  code.mainloop()
  </code></pre>
  
  <p>But I want it to look like this:
  <a href="https://i.stack.imgur.com/9yiJA.png" rel="nofollow noreferrer">Mock up for GUI</a></p>