title: tk root resize event firing on sash movement
body: <p>(1) I'm trying to understand why my <code>root.bind(&quot;&lt;Configure&gt;&quot;, resize)</code> line fires when I drag my panedwindow sash left and right? This does not change the root window's width or height or x or y values.</p>
  <p>(2) with <code>root.update()</code> in the resize event, I can move the sash left and right and eventually, get the editText to fail to expand and fill (see attachment). If I comment out this update() then I cannot make that happen.</p>
  <pre><code>from tkinter import *
  import tkinter as tk
  
  def resize(event):
      root.update()
      print(&quot;width&quot;, event.width, &quot;height&quot;, event.height, &quot;x&quot;, event.x, &quot;y&quot;, event.y)
  
  root = Tk()
  root.title(&quot;Test&quot;)
  root.geometry('600x400+400+350')
  
  pw = tk.PanedWindow(root, background=&quot;cyan&quot;,
                              bd=4,
                              orient=HORIZONTAL,
                              sashrelief=RAISED,
                              sashwidth=4, # 2 default
                              showhandle=FALSE,
                              sashpad=5, # thickness of the sash background band
                              sashcursor=&quot;sb_h_double_arrow&quot;)
  
  pw.pack(fill=BOTH, expand=True)
  
  frame1 = tk.Frame(pw)
  frame2 = tk.Frame(pw)
  
  pw.add(frame1)
  pw.add(frame2)
  
  # create scrollbars
  xscrollbar = Scrollbar(frame2, orient='horizontal')  # create X axis scrollbar and assign to frame2
  yscrollbar = Scrollbar(frame2, orient='vertical')  # create Y axis scrollbar and assign to frame2
  xscrollbar.pack( side = BOTTOM, fill=X )  # bottom side horizontal scrollbar
  yscrollbar.pack( side = RIGHT, fill=Y )  # right side vertical scrollbar
  
  t5 = Text(frame2, wrap = 'none', xscrollcommand = xscrollbar.set, yscrollcommand = yscrollbar.set)
  for line in range(50):
     t5.insert(END, str(line+1) + &quot; Now is the time for all good men to come to the aid of their party. Now is the time for all good men to come to the aid of their party.\n&quot;)
  t5.pack(expand=True, fill='both') # fill frame with Text widget
  
  pw.update()
  #print(pw.sash_coord(0))  # This method returns the location of a sash
  # Use this method to reposition the sash selected by index
  print(pw.sash_place(0, 90, 4))  # 90 moves the sash left/right
  
  root.bind(&quot;&lt;Configure&gt;&quot;, resize)
  
  root.mainloop()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/TZKVm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TZKVm.png" alt="enter image description here" /></a></p>