scrolled frame wont work in notebook tab #225
-
Problem:placing widgets in a scrolled notebook frame not working. This is the codeimport ttkbootstrap as ttk
from ttkbootstrap.constants import *
from ttkbootstrap.scrolled import ScrolledFrame
app = ttk.Window()
app.geometry("400x300")
notebook = ttk.Notebook(app)
log_frame = ScrolledFrame(notebook, autohide=True)
notebook.add(log_frame.container, text="Log ")
notebook.place(x=40, y=30, height=200, width=300)
y = 10
for x in range(20):
t = ttk.Checkbutton(log_frame.container, text=f"Checkbutton {x}")
t.place(x=10, y=y)
y += 30
app.mainloop() |
Beta Was this translation helpful? Give feedback.
Answered by
israel-dryer
Mar 12, 2022
Replies: 1 comment 3 replies
-
Set the button master to the scrolled widget instead of the scrolled widget container. The container is only used in the case that you are adding the scrolled widget to a notebook or a PanedWindow. See the example here: https://ttkbootstrap.readthedocs.io/en/latest/api/scrolled/scrolledframe/ |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
pissyonky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set the button master to the scrolled widget instead of the scrolled widget container.
The container is only used in the case that you are adding the scrolled widget to a notebook or a PanedWindow. See the example here: https://ttkbootstrap.readthedocs.io/en/latest/api/scrolled/scrolledframe/