title: How to apply a scrollbar in Tkinter GUI?
body: <p>The idea of this python program is to scrape recipes from a food website and output the recipes in a tkinter GUI when clicking the button. I have already applied the scrollbar to the GUI but it is not working as it should. I have already tried many ways but I did not succeed so I decided to ask help from the stack overflow community. I am new to tkinter so sorry for asking help for possibly a silly problem.</p>
  <p>The code so far:</p>
  <pre class="lang-py prettyprint-override"><code>    import tkinter as tk
      from tkinter import Scrollbar
  
      root = tk.Tk()
      root.title('Italian-recipes')
      height=600
      width=895 
  
      canvas = tk.Canvas(root, height=height, width=width)
      canvas.pack()
  
      background_image = tk.PhotoImage(file='food.png')
      background_label = tk.Label(root, image=background_image)
      background_label.place(relwidth=1, relheight=1)
  
      lower_frame = tk.Frame(root, bg='#80c1ff', bd=5)
      lower_frame.place(relx=0.5, rely=0.25, relwidth=0.75, relheight=0.6, anchor='n')
  
      frame = tk.Frame(root, bg='#AFF9A9', bd=5)
      frame.place(relwidth=0.75, relheight=0.1, relx=0.5, rely=0.1, anchor='n')
  
      button = tk.Button(frame, text='Enter food or ingredient', font=40, command=lambda: 
      test_function(entry.get()))
      button.place(relx=0.55, relwidth=0.45, relheight=1)
  
      entry = tk.Entry(frame, font=40)
      entry.place(relwidth=0.5, relheight=1)
  
      listbox = tk.Listbox(lower_frame, justify='left', bd=4)
      listbox.place(relwidth=1, relheight=1)
  
      label = tk.Label(listbox, anchor='nw', justify='left', bd=4)
      label.place(relwidth=1, relheight=1)
  
      scrollbar = Scrollbar(listbox, orient=&quot;vertical&quot;)
      scrollbar.pack( side = 'right', fill = 'y' )
  
      root.mainloop()
  </code></pre>
  <p><img src="https://i.stack.imgur.com/wRKOv.jpg" alt="Image of the tkinter GUI" /></p>