make widget span window width tkinter

Solutions on MaxInterview for make widget span window width tkinter by the best coders in the world

showing results for - "make widget span window width tkinter"
Tim
02 Feb 2017
1import tkinter
2import tkinter.ttk
3
4win = tkinter.Tk()
5win.geometry('600x600')
6
7frame = tkinter.Frame(win, bg='red', height=300)
8frame.grid(row=0, column=0, sticky='ew')
9win.grid_columnconfigure(0,weight=1)
10
11win.mainloop()
12