title: Python TkInter: Rightmost column and bottommost row value for grid attribute?
body: <p>I want to create a button and have it appear on the rightmost side of the frame. However, I don't know what values to enter for the column parameter in the grid attribute.</p>
  
  <p>I know that in pack, we can use side and assign it to RIGHT, but I want to use grid to do this.</p>
  
  <p>Thank you so much!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>My code:</p>
  
  <pre><code>from tkinter import *
  
  
  root = Tk()
  root.title("FoodU")
  root.geometry("1600x2560+0+0")
  
  
  #statusbar BEGIN
  
  statusbar = Frame(root, bg="black")
  statusbar.pack(fill=X, side=TOP)
  
  
  row, column = root.grid_size()
  profile = Button(statusbar, text="Profile", fg="white", highlightbackground="black")
  profile.grid(row=row, column=column, sticky="e", padx=5, pady=5, ipadx=4, ipady=3)
  
  
  #statusbar END
  
  
  root.mainloop()
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/yg3gs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yg3gs.png" alt="enter image description here"></a></p>