I have a tkinter canvas where I put labels on. When too many labels are added to the canvas, it grows out of the bottom of the screen. How do I set a max size on the canvas and make it decently scrollable?
middleCanvas = Canvas(window, bg="red", width=300, height=400)
middleCanvas.grid(column=1, row=3, sticky="N")
scroll_y.grid(column=2, row=3, sticky="NS")
middleCanvas.configure(yscrollcommand=scroll_y.set)
middleCanvas.configure(scrollregion=middleCanvas.bbox("all"))
messageLabel = Label(middleCanvas, text=line)
messageLabel.grid(column=1, row=messageRow)
Tried using a scrollbar, but the bar also goes out of screen and fills the slider.