Я хочу добавить список имен в ScrollableFrame из Custom TKinter.
В настоящее время я использую CTkLabel для имена.
Код: Выделить всё
import customtkinter
list_names = ["Liam", "Olivia", "Noah", "Emma"]
root = customtkinter.CTk()
root.geometry("1000x550")
root.title("Test")
frame = customtkinter.CTkFrame(master=root)
frame.pack(pady=20, padx=60, fill="both", expand=True)
other_frame = customtkinter.CTkScrollableFrame(master=frame, height=350, width=250, label_text="List").pack(pady=40)
for name in list_names:
customtkinter.CTkLabel(master=other_frame, text=name).pack(pady=10)
root.mainloop()
Подробнее здесь: https://stackoverflow.com/questions/781 ... able-frame