title: Hello! I have some problems with tkinter grid alignment and button size
body: <p>Why the grid is not centered to the window size? What is the maximum row and column now of the grid?
  Also, why the buttons are not square since i define their height and width to be equal?
  this is my code:</p>
  
  <pre><code>from Tkinter import *
  
  class Application:
      def __init__(self, master=None):
          self.master = master
          self.createWidgets_0()
  
      def createWidgets_0(self):
          self.but_Next = Button(self.master, text="Next", height = 10, width = 10)
          self.but_Next.grid(row=1, column=2)
  
          self.but_fil1 = Button(self.master, text="Filler", height = 10, width = 10)
          self.but_fil1.grid(row=1, column=1)
  
          self.but_fil2 = Button(self.master, text="Filler", height = 10, width = 10)
          self.but_fil2.grid(row=0, column=1)
  
          self.but_fil3 = Button(self.master, text="Filler", height = 10, width = 10)
          self.but_fil3.grid(row=2, column=1)
  
          self.but_Close = Button(self.master, text="Close", command=self.master.quit, height = 10, width = 10)
          self.but_Close.grid(row=1, column=0)
  
  root = Tk()
  app = Application(root)
  app.master.geometry("800x600")
  app.master.resizable(0, 0)
  root.mainloop()
  root.destroy()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XVW9V.png" rel="nofollow noreferrer">this is the output i get of the above code</a></p>