title: Why won't the canvas become scrollable?
body: <p>I'm using tkinter, this is my code:</p>
  <pre><code>import tkinter as tk
  
  root = tk.Tk()
  
  frame1 = tk.Frame(root, bg=root['background'])
  frame1.pack(expand='YES')
  
  canvas = tk.Canvas(frame1, width=500, height=100, bg=&quot;#B8D8D8&quot;, relief=&quot;raised&quot;)
  canvas.configure(scrollregion=canvas.bbox(&quot;ALL&quot;))
  canvas.pack(expand='YES', fill='both')
  scroll_x = tk.Scrollbar(frame1, orient=&quot;horizontal&quot;)
  scroll_x.config(command=canvas.xview)
  scroll_x.pack(side=&quot;top&quot;, fill='x')
  canvas.configure(xscrollcommand=scroll_x.set)
  
  start = int(50)
  file_names = [....] # a list of many strings
  for name in file_names:
      frame = tk.Frame(canvas, bg=canvas['background']) # the frame is necessary since in the real code i'm using an image widget as well
      lbl = tk.Label(frame, text=name, bg=canvas['background'])
      bl.pack()
      frame.pack()
      canvas.create_window(start, 50, window=frame)
      start = start + 100
  </code></pre>
  <p>The canvas won't scroll and many strings of which I'd like to display get lost. The <code>root</code> is non-resizable.</p>