title: Why is my tkinter scrollbar not working as intended? i hv removed the command line for the scrollbar
body: <p>no error shown, i just removed the scrollbar command previously added as it wasnt working. i hope someone will be able to advise how to do this as i had gone thru multiple tutorials even those advises in stack overflow. i need to be able to scroll thru the entire window, below is the full code as requested.</p>
  <pre><code>    import tkinter as tk
      from tkinter import *
      import time;
      import datetime
      from tkinter import ttk
      from PIL import ImageTk, Image
      import os
      
      root = Tk()
      root.title(&quot;Fibroscan Report&quot;)
      root.geometry(&quot;1000x1200&quot;)
      root.iconbitmap('d:/python_file/python_gui/zaclogo.ico')
      
      
      frame0 = Frame(root, width=200, height=100)
      frame0.pack()
      frame0.pack_propagate(0)
      
      frame1 = Frame(frame0, width=200, height=110, padx= 5, pady=5, bd=10,relief=RIDGE)
      frame1.grid(row=0, column=0)
      
      frame2 = Frame (frame0, width=200, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame2.grid(row=0, column=1)
      
      frame3 = Frame(root, width=400, height=100)
      frame3.pack()
      frame3.pack_propagate(0)
      
      frame4 = Frame(frame3, width=600, height=50, padx= 5, pady=5, bd=10, relief=RIDGE)
      frame4.grid(row=0, column=0)
      frame4.grid_propagate(0)
      
      frame = Frame (root, width=200, height=100, padx=5, pady=15, relief=RIDGE)
      frame.pack()
      frame.pack_propagate(0)
      
      framephoto = Frame (frame)
      framephoto.grid()
      
      canvas = Canvas(framephoto, width = 800, height = 324)
      canvas.grid()
      
      img = ImageTk.PhotoImage(Image.open(&quot;metavirchart2.png&quot;))
      canvas.create_image(107, 0, anchor=NW, image=img)
      canvas.image = img
      
      frame5 = LabelFrame (root,text=&quot;Fibroscan® Score Guide&quot;,font=('arial', 10), padx= 5, pady=5, bd=10, relief= RIDGE)
      frame5.pack()
      frame5.pack_propagate(0)
      
      frame6 = Frame (frame5, width=230, height=50, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame6.grid(row=1, column=0)
      frame6.grid_propagate(0)
      
      frame7 = Frame (frame5, width=230, height=115, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame7.grid(row=2, column=0)
      frame7.grid_propagate(0)
      
      frame8 = Frame (frame5, width=230, height=50, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame8.grid(row=3, column=0)
      frame8.grid_propagate(0)
      
      frame9 = Frame (frame5, width=230, height=100, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame9.grid(row=4, column=0)
      frame9.grid_propagate(0)
      
      frame10 = Frame (frame5, width=515, height=50, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame10.grid(row=1, column=1)
      frame10.grid_propagate(0)
      
      frame11 = Frame (frame5, width=515, height=115, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame11.grid(row=2, column=1)
      frame11.grid_propagate(0)
      
      frame12 = Frame (frame5, width=515, height=50, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame12.grid(row=3, column=1)
      frame12.grid_propagate(0)
      
      frame13 = Frame (frame5, width=515, height=100, padx= 5, pady=5, bd=10, relief= RIDGE)
      frame13.grid(row=4, column=1)
      frame13.grid_propagate(0)
      
      frameguide = Frame (frame5)
      frameguide.grid(row=0, column=0)
      frameguide.grid_propagate(0)
      
      frame14 = Frame (frame13)
      frame14.grid(row=0, column=1)
      frame14.grid_propagate(0)
      
      identity = StringVar()
      fullname = StringVar()
      refdr = StringVar(root)
      datescan = StringVar()
      dob = StringVar()
      operator = StringVar()
      operator.set('Insert Operator Name')
      kpa = IntVar()
      metavir = StringVar()
      idrtype = StringVar()
      idrtxt = StringVar()
      
      lblidentity = Label(frame1, text=&quot;Patient ID&quot;, font=('arial', 10, 'bold'))
      lblidentity.grid(row=0, column=0, sticky=W)
      txtidentity = Entry(frame1, width=24, textvariable=identity, font=('arial', 10))
      txtidentity.grid(row=0, column=1)
      
      lblfullname = Label(frame1, text=&quot;Patient Name&quot;, font=('arial', 10, 'bold'))
      lblfullname.grid(row=1, column=0, sticky=W)
      txtfullname = Entry(frame1, width=24, textvariable=fullname, font=('arial', 10))
      txtfullname.grid(row=1, column=1)
      
      lbldob = Label(frame1, text=&quot;Date of Birth&quot;, font=('arial', 10, 'bold'))
      lbldob.grid(row=2, column=0, sticky=W)
      txtdob = Entry(frame1,  width=24,textvariable=dob, font=('arial', 10))
      txtdob.grid(row=2, column=1)
      
      lblrefdr = Label(frame1, text=&quot;Referring Doctor&quot;, font=('arial', 10, 'bold'))
      lblrefdr.grid(row=3, column=0, sticky=W)
      
      txtrefdr = ttk.Combobox(frame1, width=24,
                                  values=[
                                          &quot;Operator1&quot;,
                                          &quot;Operator2&quot;,
                                          &quot;Operator3&quot;,
                                          &quot;Operator4&quot;,
                                          &quot;Operator5&quot;,
                                          &quot;Operator6&quot;,
                                          &quot;Operator7&quot;], state = &quot;readonly&quot;)
      
      txtrefdr.grid(row=3, column=1)
      txtrefdr.current(0)
      
      lbldatescan = Label(frame2, text=&quot;Date of Scan&quot;, font=('arial', 10, 'bold'))
      lbldatescan.grid(row=0, column=0, sticky=W)
      txtdatescan = Entry(frame2, width=24, textvariable=datescan, font=('arial', 10))
      txtdatescan.grid(row=0, column=1)
      
      lblindi = Label(frame2, text=&quot;Indication&quot;, font=('arial', 10, 'bold'))
      lblindi.grid(row=1, column=0, sticky=W)
      
      txtindi = ttk.Combobox(frame2,width=24,
                                  values=[
                                          &quot;Hepatitis B*&quot;,
                                          &quot;HCV-HIV co-infection*&quot;,
                                          &quot;Hepatitis C&quot;,
                                          &quot;Hepatitis C*&quot;,
                                          &quot;Chronic Cholestatic Diseases*&quot;,
                                          &quot;Alcohol**&quot;,
                                          &quot;Others&quot;,
                                          &quot;NAFLD***&quot;], state=&quot;readonly&quot;)
      txtindi.grid(row=1, column=1)
      txtindi.current(0)
      
      lblgender = Label(frame2, text=&quot;Gender&quot;, font=('arial', 10, 'bold'))
      lblgender.grid(row=2, column=0, sticky=W)
      
      
      gender = [&quot;Male&quot;, &quot;Female&quot;, &quot;Unspecified&quot;]
      
      txtgender = ttk.Combobox(frame2, width=24,
                                  values=gender, state=&quot;readonly&quot;)
      
      txtgender.grid(row=2, column=1)
      txtgender.current(0)
      
      lblop = Label(frame2, text=&quot;Operator&quot;, font=('arial', 10, 'bold'))
      lblop.grid(row=3, column=0, sticky=W)
      txtop = Entry(frame2, width=24, textvariable=operator, font=('arial', 10))
      txtop.grid(row=3, column=1)
      
      lbltitle = Label(frame4, text=&quot;YOUR FIBROSCAN® SCORE (Median LSM) is:    &quot;)
      lbltitle.grid(row=0, column=0)
      
      lblkpa = Label(frame4, text=&quot;KPa     &quot;)
      lblkpa.grid(row=0, column=2)
      txtkpa = Entry(frame4, textvariable=kpa, font=('arial', 10), width=5)
      txtkpa.grid(row=0, column=1)
      
      lblmeta = Label(frame4, text=&quot;             Metavir Stage:   &quot;)
      lblmeta.grid(row=0, column=3)
      
      metavir_score = [&quot;F0&quot;, &quot;F0-F1&quot;, &quot;F1&quot;, &quot;F1-F2&quot;, &quot;F2&quot;, &quot;F2-F3&quot;, &quot;F3-F4&quot;, &quot;F4&quot;]
      
      txtmeta = ttk.Combobox(frame4, width=10,
                                  values=metavir_score, textvariable=metavir, state=&quot;readonly&quot;)
      
      txtmeta.grid(row=0, column=4)
      txtmeta.current(0)
      
      
      lbltitle2 = Label(frame6,
                    text=&quot;Underlying Liver Disease&quot;, font=('arial', 10, 'bold'))
      lbltitle2.grid(sticky=E)
      
      lbltitle3 = Label(frame7,
                            text=&quot;Assessment&quot;, font=('arial', 10, 'bold'))
      lbltitle3.grid(sticky=W)
      
      lbltitle4 = Label(frame8,
                            text=&quot;Clinical Interpretation&quot;, font=('arial', 10, 'bold'))
      lbltitle4.grid(sticky=W)
      
      lbltitle5 = Label(frame9,
                             text=&quot;Recommended Clinical Actions&quot;, font=('arial', 10, 'bold'))
      lbltitle5.grid(sticky=W)
      
      lbltitleudl = Label(frame10,
                             text=&quot;next to UDL&quot;, font=('arial', 10, 'bold'))
      lbltitleudl.grid()
      
      lbltitle3a = Label(frame11,
                             text=&quot;Fibroscan Median LSM      =&quot;, font=('arial', 10, 'bold'))
      lbltitle3a.grid(row=0, column=0, sticky =W)
      
      txtitle3a = Entry(frame11, width=16)
      txtitle3a.grid(row=0, column=1)
      
      lbltitle3a = Label(frame11,
                             text=&quot;Metavir Stage                    =&quot;, font=('arial', 10, 'bold'))
      lbltitle3a.grid(row=1, column=0, sticky=W)
      
      
      txtmetasg = ttk.Combobox(frame11, width=13,
                                  values=metavir_score, state=&quot;readonly&quot;)
      
      txtmetasg.grid(row=1, column=1)
      txtmetasg.current(0)
      
      lbltitle3a = Label(frame11,
                             text=&quot;Probe Type                        =&quot;, font=('arial', 10, 'bold'))
      lbltitle3a.grid(row=2, column=0, sticky=W)
      
      txtmeta = ttk.Combobox(frame11, width=13,
                                  values=[
                                          &quot;S&quot;,
                                          &quot;M&quot;,
                                          &quot;XL&quot;,
                                          &quot;Others&quot;], state=&quot;readonly&quot;)
      
      txtmeta.grid(row=2, column=1)
      txtmeta.current(0)
      
      lbltitle3a = Label(frame11,
                             text=&quot;IQR/Median                        =&quot;, font=('arial', 10, 'bold'))
      lbltitle3a.grid(row=3, column=0, sticky=W)
      
      txtitle3a = Entry(frame11, width=16, textvariable=idrtype)
      txtitle3a.grid(row=3, column=1)
      
      lbltitle3a = Label(frame12,
                               text=&quot;Significant Fibrosis            =&quot;, font=('arial', 13, 'bold'))
      lbltitle3a.grid(row=0, column= 0)
      
      txtmeta = ttk.Combobox(frame12, width=10,
                                  values=[
                                          &quot;Yes&quot;,
                                          &quot;No&quot;], state=&quot;readonly&quot;)
      
      txtmeta.grid(row=0, column=1)
      txtmeta.current(0)
      
      fcolumn = Frame(frame13)
      fcolumn.grid()
      
      fcolumn1 = Frame(frame13)
      fcolumn1.grid(sticky=W)
      
      txtrca = ttk.Combobox(fcolumn, width=77, height=200,
                                  values=[
                                          &quot;Repeat Fibroscan in 1 year&quot;,
                                          &quot;Patients with significant liver fibrosis have an increased risk of complications secondary \n to liver disease and development of HCC and should be considered \n for treatment of underlying aetiology or risk factor modification.&quot;,
                                          &quot;In patients with advanced fibrosis or cirrhosis, regular screening \n and surveillance for HCC is also recommended.&quot;,
                                          ])
      
      txtrca.grid(row=0, column=0)
      txtrca.current(0)
      txtrca.grid_propagate(0)
      
      lbliqr = Label(fcolumn1,
                             text=&quot;M Probe IQR/MEDIAN        =&quot;, font=('arial', 10, 'bold'))
      lbliqr.grid(row=1, column=0, sticky =W)
      
      txtiqr = Entry(fcolumn1, width=16, textvariable=idrtxt)
      txtiqr.grid(row=1, column=1)
      
      lblguide = Label(fcolumn1,
                             text=&quot;*AASLD, APASL, EASL Guidelines&quot;, font=('arial', 10, 'bold'))
      lblguide.grid(row=2, column=0, sticky =W)
      
      root.mainloop()
  </code></pre>
  <p>any help will be appreciated.
  no hate comments pls if u cant help or dun wish to help.</p>