title: Is there a way to combine pack() with place()? - Python Tkinter
body: <p>The lines with the &quot;#&quot; is where I am facing the problem. Wrapper1.pack() does the job of placing the scroll bar inside the LabelFrame while Wrapper1.place() puts it where I want it and sizes it how I want it but doesn't place the scrollbar inside the LabelFrame (I showed the full code below).</p>
  <p>Essentially, I want to combine pack() with place() to get my desired results. How do I do it?</p>
  <pre><code>from tkinter import *
  from tkinter import ttk
  
  root = Tk()
  
  wrapper1 = LabelFrame(root)
  
  mycanvas = Canvas(wrapper1)
  mycanvas.pack(side=LEFT, fill=&quot;both&quot;, expand=&quot;yes&quot;)
  
  yscrollbar = ttk.Scrollbar(wrapper1, orient=&quot;vertical&quot;, command=mycanvas.yview )
  yscrollbar.pack(side=RIGHT, fill=&quot;y&quot;)
  
  mycanvas.configure(yscrollcommand=yscrollbar.set)
  mycanvas.bind('&lt;Configure&gt;', lambda e: mycanvas.configure(scrollregion = mycanvas.bbox('all')))
  
  myframe = Frame(mycanvas)
  mycanvas.create_window((0,0), window=myframe, anchor=&quot;nw&quot;)
  
  
  # wrapper1.pack(side = RIGHT, padx=10, pady=10) 
  # wrapper1.place(x=680,y=50,height=480,width=270)
  
  
  for i in range(200):
      Button(myframe, text=&quot;My Button - &quot;+str(i)).pack()
  
  root.geometry(&quot;960x540&quot;)
  root.resizable(False, False)
  root.title(&quot;My Scroller&quot;)
  root.mainloop()
  </code></pre>