title: Adding a scrollbar to GUI labels not working
body: <p>I have tried adding a scrollbar to my GUI but it keeps returning a small canvas which my labels don't fit.
  Below is my code using Python.</p>
  <pre class="lang-py prettyprint-override"><code>import tkinter as tk
  from tkinter import Canvas, Frame, ttk
  from tkinter.constants import ANCHOR, BOTH, LEFT, RIGHT, VERTICAL, Y
  
  
  root = tk.Tk()
  
  #create a Main Frame
  main_frame = tk.Frame(root)
  main_frame.grid(row=2, column=0, pady=(5,0), sticky=&quot;nw&quot;)
  main_frame.grid_rowconfigure(0, weight=1)
  main_frame.grid_columnconfigure(0, weight=1)
  
  
  #create a canvas
  my_canvas = Canvas(main_frame, bg=&quot;yellow&quot;)
  my_canvas.grid(row=0, column=0, sticky=&quot;news&quot;)
  
  
  #Scrollbar
  my_scrollbar = ttk.Scrollbar(main_frame, orient=VERTICAL, command=my_canvas.yview)
  my_scrollbar.grid(row=0, column=0, sticky=&quot;ns&quot;)
  
  #configure the canvas
  my_canvas.configure(yscrollcommand=my_scrollbar.set)
  my_canvas.bind('&lt;Configure&gt;', lambda e: my_canvas.configure(scrollregion = my_canvas.bbox(&quot;all&quot;)))
  #create another frame inside canvas
  second_frame = Frame(my_canvas)
  #add that new frame to a window in the canvas
  my_canvas.create_window((0,0), window=second_frame, anchor=&quot;nw&quot;)
  
  # Labels
  tk.Label(root, text=&quot;Decision Support System&quot;).grid(
      column=0, row=0, sticky=&quot;&quot;, padx=50)
  tk.Label(root, text=&quot;&quot;&quot;This is a simple application that will help in decision making on whether to adopt a technology based on criteria listed below, you are rate each criteria 1-5
  1- not important, 2- slightly important, 3- moderately important, 4-important, 5- very important&quot;&quot;&quot;).grid(column=0, row=1)
  tk.Label(root, text=&quot;What type of technology are you trying to invest in?&quot;).grid(
      column=0, row=2, sticky=&quot;w&quot;, pady=20, padx=10)
  tk.Label(root, text=&quot;CA1- Technology Predictors, Group score[35], Coefficient = 0.200&quot;).grid(
      column=0, row=3, sticky=&quot;&quot;, pady=10, padx=10)
  tk.Label(root, text=&quot;Ca1.1-Level of training required :  is training of staff going to be thorough?&quot;).grid(
      column=0, row=4, sticky=&quot;w&quot;, pady=10, padx=10)
  
  
  #GUI window
  root.mainloop()
  </code></pre>
  <p>And this is what it looks like:
  <img src="https://i.stack.imgur.com/1rmTu.png" alt="tkwindow" /></p>
  <p>It has a total of 27 rows.</p>