Tkinter Scrollbar not working
<p>I have a piece of tkinter code running on python 3.4 that is a large frame placed in a canvas with a vertical scrollbar, however the scrollbar is grayed out and doesn't seem to be linked to the size of the frame. The code I'm using is essentially:</p>

<pre><code>class EntryWindow:
    def __init__(self, master):
        self.master = master
        self.master.minsize(750, 800)
        self.master.maxsize(1000, 800)
        self.canvas = tk.Canvas(self.master, borderwidth=0, bg='#ffffff')
        self.vsb = tk.Scrollbar(self.master)
        self.master_frame = tk.Frame(self.canvas)
        self.vsb.pack(side="right", fill='y')
        self.canvas.pack(side='left', fill='both', expand=True)
        self.canvas.create_window((0,0), window=self.master_frame, anchor='nw', tags='self.master_frame')
        self.canvas.config(yscrollcommand=self.vsb.set)
        self.master_frame.grid()

        ###build widgets and place into master_frame
        ...
</code></pre>

<p>The <code>master_frame</code> is filled with about 36 widgets placed using the grid geometry manager and reaches a vertical height of about 2000 pixels, but the scrollbar doesn't work. </p>

<p>I saw a post about using ttk scrollbar, but when I imported that I couldn't get it to work. The input statement I used was:</p>

<pre><code>import tkinter as tk
import tkinter.ttk as ttk
</code></pre>

<p>and then replaced the line <code>self.vsb = tk.Scrollbar(self.master)</code> with <code>self.vsb = ttk.Scrollbar(self.master)</code> but that didn't fix it either. I also tried removing the min/max sizing on master (those aren't the final values, I've been playing with it).</p>

<p>Is there something I'm doing wrong? I feel like it might be in the line where I set the canvas.config() but I read the documentation and it seems to be right. Tomorrow I plan on trying to load the frame into the canvas after I've built the frame.</p>

<p>But in the meantime, and in case that doesn't work, any help would be great! Thanks!</p>