title: Layout - Tkinter - Grouping buttons together
body: <p>I am new using <code>Tkinter</code> and I am making a really easy GUI. Coming from JavaFX background I am finding it a bit confusing because I cannot base my buttons position on the coordinates.</p>
  
  <p>This is my actual code:</p>
  
  <pre><code>class MoveRobot(Frame):
  
  grid_counter = 0
  
  def __init__(self):
      Frame.__init__(self)
      self.master.title("Control Robot")
      self.master.geometry("400x400")
      self.master.rowconfigure(0, weight=1)
      self.master.columnconfigure(0, weight=1)
      self.grid(sticky=W + E + N + S)
  
      self.list_box = Listbox(self)
      self.list_box.grid(rowspan=4, sticky=W + E + N + S)
  
      self.button1 = Button(self, text="UP", command=self.button_up)
      self.button1.grid(row=0, column=1, columnspan=2, sticky=W + E + N + S)
  
      self.button2 = Button(self, text="DOWN", command=self.button_down)
      self.button2.grid(row=1, column=1, columnspan=2, sticky=W + E + N + S)
  
      self.button3 = Button(self, text="LEFT", command=self.button_left)
      self.button3.grid(row=2, column=1, columnspan=2, sticky=W + E + N + S)
  
      self.button4 = Button(self, text="RIGHT", command=self.button_right)
      self.button4.grid(row=3, column=1, columnspan=2, sticky=W + E + N + S)
  
      self.button_cancel = Button(self, text="Remove Last", command=self.button_remove_last)
      self.button_cancel.grid(row=4, columnspan=2, sticky=W + E + N + S)
  
      self.button_cancel = Button(self, text="Clear", command=self.button_clear)
      self.button_cancel.grid(row=5, columnspan=2, sticky=W + E + N + S)
  
      self.button_compile = Button(self, text="Compile", command=self.button_compile)
      self.button_compile.grid(row=6, columnspan=2, sticky=W + E + N + S)
  
      self.rowconfigure(1, weight=1)
      self.columnconfigure(1, weight=1)
  
  #controller code is removed because unnecessary
  
  def main():
      MoveRobot().mainloop()
  
  if __name__ == "__main__":
      main()  
  </code></pre>
  
  <p>And the one below is my GUI created.</p>
  
  <p><a href="https://i.stack.imgur.com/vwFBv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vwFBv.png" alt="GUI built it from the code provided"></a></p>
  
  <p>However, I cannot manage to stick the button 'UP', 'DOWN', 'LEFT' and 'RIGHT' together. I've tried to look over forums and websites but I could not find a solution. It should be pretty straightforward because it is just a layout problem.</p>
  
  <p>The output I want should be something like this..</p>
  
  <p><a href="https://i.stack.imgur.com/9qGZI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9qGZI.png" alt="GUI wanted"></a></p>
  
  <p>Anyone is able to help? I hope this question will be beneficial for other people as well since I don't know how to use Tkinter and I can't find a solution over the web.</p>
  
  <p>Thank you in advance.</p>