I'm learning Python GUI programming with tkinter. I needed to put an edge in my root window utilizing the grid geometry manager, indicate a height, and have the frame grow to the full width of the root window. I attempted to do this utilizing the tacky alternatives however this doesn't create the ideal outcome. How would I cause the frame to grow to the full width of the window without physically indicating the width?
Code:
import tkinter
import tkinter.ttk
win = tkinter.Tk()
win.geometry('600x600')
frame = tkinter.Frame(win, height=300)
frame.configure(bg='red')
frame.grid(column=0, sticky=tkinter.E + tkinter.W)
win.mainloop()