I'm working on a GUI with tkinter and i have a problem. When i add a scrollbar to my app, the frame on my canvas overlaps the outlines (see image)
Here is the code:
from tkinter import * window = Tk() window.geometry("400x225") scrollbar1 = Scrollbar(window, orient=VERTICAL) canvas1 = Canvas(window, bg="#003333", yscrollcommand=scrollbar1.set) frame1 = Frame(canvas1, bg="#003333") scrollbar1.config(command=canvas1.yview) scrollbar1.pack(side=RIGHT, fill=Y) canvas1.pack(fill=BOTH, expand=True) canvas1.create_window((0, 0), window=frame1, anchor="nw") for x in range(20): string = "line " + str(x) label1 = Label(frame1, fg="white", bg="#003333", text=string, font=("Calibri Bold", 14)) label1.pack(pady=5) window.update() canvas1.config(scrollregion=canvas1.bbox("all")) window.mainloop() I don't know if it's possible but i want the frame to fit within the canvas and keeping the outlines as well. I hope you get my problem and can probably help me out! Thanks in advance.
