title: Resizing the treeview manually in tkinter
body: <p>Here i'm trying to drag the sample1 treeview to downward and upward manually(maximizing and minimizing the number of visible rows). As i drag the 1st treeview downward manually, the 1st treeview need to extend and the 2nd treeview needs to minimize. Can we do that in Tkinter. Please help me with this</p>
  <p>Sample code:</p>
  <pre><code>import tkinter as tk
  import tkinter.ttk as ttk
  
  
  class Window:
      def __init__(self, master):
          self.master = master
          self.master.geometry('630x500+90+30')
          
          self.button = tk.Button(self.master,height=1,width=11, text=&quot;Sample&quot;).place(x=0,y=0)
          self.label = tk.Label(self.master, text='sample1 ',font=(&quot;Algerian&quot;, 20,'bold')).grid(row=0,columnspan=3)
          
          cols = ('aa','bb')
          self.treeview = ttk.Treeview(self.master, columns=cols)
          v_scrollbar = ttk.Scrollbar(self.master, orient='vertical', command=self.treeview.yview)
          self.treeview.config( yscrollcommand=v_scrollbar.set)
          for col in cols:
              self.treeview.heading(col, text=col)
          self.treeview.grid(row=1, column=0)
          v_scrollbar.grid(row=1, column=1, sticky='nes')
  
          self.label = tk.Label(self.master, text=&quot;sample2&quot;).grid(row=6, columnspan=3)
          
          ccols = ('aa', 'bb')
          self.treeview1 = ttk.Treeview(self.master, columns=ccols)
          v_scrollbar1= ttk.Scrollbar(self.master, orient='vertical', command=self.treeview1.yview)
          self.treeview1.config( yscrollcommand=v_scrollbar1.set)
          for col in ccols:
              self.treeview.heading(col, text=col)
          self.treeview1.grid(row=8, column=0)
          v_scrollbar1.grid(row=8, column=1, sticky='nes')
          
          for i in range(100):
              self.treeview.insert('', 'end', value=(i))
  
  def main():
      root = tk.Tk()
      Window(root)
      root.mainloop()
  
  # --- main ---
  
  if __name__ == '__main__':
      main()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/aKh3o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aKh3o.png" alt="enter image description here" /></a></p>
  <p>Please let me know if any other information is needed. Thank you</p>