title: Resize Entry with window in Tkinter
body: <p>I am using Tkinter and I want my elements to resize when the window resizes (only horizontally)</p>
  
  <p>I tried sticking to <code>W+E</code> but apparently this only works when the window is created but not when it's resized.</p>
  
  <p>Minimal example:</p>
  
  <pre><code>from tkinter import Tk, Entry, Label, StringVar, W, E, N, S
  
  class Test:
      def __init__(self, master):
          # Variable definitions
          self.master = master
          self.var1 = StringVar()
  
          # Element definitions
          self.label1 = Label(text="Dummy test")
          self.entry1 = Entry(master, textvariable=self.var1)
  
          # Grid placement
          self.label1.grid(row=0, column=0, sticky=W)
          self.entry1.grid(row=0, column=1, sticky=W+E)
  
  root = Tk()
  Test(root)
  root.mainloop()
  </code></pre>
  
  <p>Original window when program is executed:</p>
  
  <p><a href="https://i.stack.imgur.com/tE5bj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tE5bj.png" alt="enter image description here"></a></p>
  
  <p>When I resize, I want the Entry to grow and shrink with the window
  <a href="https://i.stack.imgur.com/Ra6bH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ra6bH.png" alt="enter image description here"></a></p>