title: Tkinter - Grid elements next to each other
body: <p>I'm trying to make some UI in python with tkinter.</p>
  <p>This is a sample of the code I'm using:</p>
  <pre><code>root = Tk()
  root.geometry(&quot;1000x700x0x0&quot;)
  
  canvas = Canvas(root, width = 700, height = 700, bg ='white').grid(row = 0, column = 0)
  button1 = Button(root, text = &quot;w/e&quot;, command = w/e).grid(row = 0, column = 1)
  button2 = Button(root, text = &quot;w/e&quot;, command = w/e).grid(row = 1, column = 1)
  </code></pre>
  <p>This is what i'm getting:<a href="https://i.stack.imgur.com/TF65P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TF65P.png" alt="enter image description here" /></a></p>
  <p>and this is what I want:<a href="https://i.stack.imgur.com/S6x7B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S6x7B.png" alt="enter image description here" /></a></p>
  <p>Any help on how can I do it?</p>
  <p>Thanks!</p>