title: Scrollbar, Checkbutton and canvas in python 2.7
body: <p>I try to open a new window where there will be a list of check box and will be scrollable.</p>
  
  <p>But, my list is not scrolled.
  this is my code:</p>
  
  <pre><code>class PageCanvas1(tk.Toplevel):
      def __init__(self, parent):
          global arr
          global users
          arr = {}
          tk.Toplevel.__init__(self, parent)
          self.title('Canvas')
          self.geometry('400x600')
          canvas = tk.Canvas(self, bg='white', scrollregion=(0, 0, 400, 20000))
          canvas.pack(fill='both', expand=True)
  
          vbar = tk.Scrollbar(canvas, orient='vertical')
          vbar.pack(side='right', fill='y')
          vbar.config(command=canvas.yview)
          canvas.config(yscrollcommand=vbar.set)
          canvas.create_text(5, 0, anchor='nw', text="Choose users: ")
          for i in range(1000):
              arr[i] = tk.IntVar()
              Checkbutton(canvas, text=str(i), variable=arr[i]).pack()#.grid(row=i, sticky=W)
  
  root = Tk()
  b_choose = Button(root, text='choose users', height=3, width=15, bg="turquoise", command=(lambda arr=ents: PageCanvas(root)))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7ngKs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ngKs.png" alt="no scroll"></a></p>
  
  <p>I can not find any answer to this specific thing, that a new window must be opened! I would be happy to help!</p>