I am trying to create a tkinter
window with a button that is stuck at the bottom. I want the button to be used to add new items to the window (separate code, not shown here), but always keep the button at the bottom. Something like the following:
import tkinter as tk
m = tk.Tk(className="My window")
create = tk.Button(m, text="Create new item", width=25)
create.grid(row=inf, padx=40, pady=20)
m.mainloop()
except of course tkinter.grid()
doesn;t accept inf
as a valid value for row=
. My question is how can I ensure that even as I add items to the tkinter
window, my button will always remain on the bottom.