hi I have a problem with Tkinter widget I try to center the widgets in the center of the screen but I could not successfully help anyone?
open_windows.geometry("300x600")
Label(open_windows, image=bgImage).place(relwidth=1, relheight=1)
center_frame = Frame(open_windows, padx=10, pady=10)
login_label = Label(open_windows, text="login to your instagram user")
username_label = Label(open_windows, text="User Name:")
password_label = Label(open_windows, text="Password:")
username_entry = Entry(open_windows, width=25)
password_entry = Entry(open_windows, width=25)
submit_button = Button(open_windows, text="submit")
username_label.grid(row=0, column=0, padx=10, pady=10, sticky="NSEW")
username_entry.grid(row=0, column=1, padx=10, pady=10, sticky="NSEW")
password_label.grid(row=1, column=0, padx=10, pady=10, sticky="NSEW")
password_entry.grid(row=1, column=1, padx=10, pady=10, sticky="NSEW")
submit_button.grid(row=2, column=0, columnspan=2, padx=10, pady=10, sticky="NSEW")
open_windows.mainloop()