title: how to add a vertical scrollbar to checkbox in python tkinter?
body: <p>I read the input for checkbox from a text file and this has increased more than the given window size.
  How to add a scrollbar to this to view all the contents of the checkbox.
  Thanks in advance.</p>
  <p>Edit: added the code.</p>
  <pre><code>from tkinter import *
  import os
  
  
  error = []
  window = &quot;&quot;
  with open(&quot;op.txt&quot;) as inp:
      for lines in inp:
          if lines.strip() == &quot;done&quot;:
              error.append(window)
              window = &quot;&quot;
          else:
              window += lines
  
  print(len(error))
  
  root = Tk()
  root.minsize(500, 500)
  cbTexts={}
  cbVariables={}
  cb={}
  for i in error:
      cbTexts[i] = StringVar()
      cbTexts[i].set(i)
      cbVariables[i] = IntVar()
      cbVariables[i].set(0)
      cb[i] = Checkbutton(root, textvariable=cbTexts[i], variable=cbVariables[i])
      cb[i].pack()
  mainloop()
  </code></pre>