I want that when I stretch the window, the text box within it also gets bigger.
I have been following a youtube video series from sentdex, so my code is somewhat similar to his.

I have tried to set it sticky, I have tried to put weight onto the columns and rows but it does not change.

Code:

```
import tkinter as tk

from tkinter import filedialog

class OpenFile(tk.Tk):

    def __init__(self,*args,**kwargs):

        tk.Tk.__init__(self,*args,**kwargs)

        tk.Tk.wm_title(self,"FileOpener")

        container = tk.Frame(self)
        container.pack(side="top", fill="both", expand = True)
        container.grid_rowconfigure(0,weight=1)
        container.grid_columnconfigure(0, weight=1)

        menubar = tk.Menu(container)
        filemenu = tk.Menu(menubar, tearoff=0)
        filemenu.add_command(label="Save settings", 
                                    command= lambda:print("Doing nothing"))
        filemenu.add_separator()
        filemenu.add_command(label="Exit", command=quit)
        menubar.add_cascade(label="File", menu=filemenu)

        tk.Tk.config(self,menu=menubar)

        self.frames = {}

        for F in (StartPage,):

            frame =F(container, self)
            self.frames[F] = frame
            frame.grid( row=0, column=0, sticky="nsew")

        self.show_frame(StartPage)

    def show_frame(self,cont):

        frame = self.frames[cont]
        frame.tkraise()

class StartPage(tk.Frame):

    def __init__(self, parent, controller):
        tk.Frame.__init__(self, parent)
        global filetextbox
        ### INPUT FRAME
        containerinput=tk.Frame(self)
        containerinput.grid(row=2,column=0,columnspan=4,sticky="nsew")
        containerinput.grid_columnconfigure(0, weight=1)
        containerinput.grid_rowconfigure(1, weight=1)
        ## Label
        labeltxt1 = tk.Text(self)
        labeltxt1.config(height=1,relief=tk.SUNKEN)
        #label1.pack(pady=10,padx=10,side=tk.LEFT)
        labeltxt1.grid(row=1,column=0)

        ## Text
        text1 = tk.Text(containerinput)
        text1.pack(side=tk.LEFT,fill="both",expand=True)
        scroll1= tk.Scrollbar(containerinput,command=text1.yview)
        scroll1.pack(side=tk.RIGHT,fill=tk.BOTH)
        text1.config(yscrollcommand=scroll1.set)       

        #containerinput.pack(side=tk.LEFT,fill="both",expand=True)
        ##Button
        button1 = tk.Button(self, text="Choose file", 
                                command=lambda:getFile(self))
        #button1.pack(side=tk.TOP)
        button1.grid(row=0,column=0)

app=OpenFile()

app.mainloop()

```

This is what it looks like:

[![enter image description here](https://i.stack.imgur.com/Jiocx.png)](https://i.stack.imgur.com/Jiocx.png)

This is what kind of I want like:

[![enter image description here](https://i.stack.imgur.com/WbJOy.png)](https://i.stack.imgur.com/WbJOy.png)