Im trying to make a scrollable image in a window in TKinter. Its enough to scroll the image upwards and downwards, theres no need for scrolling left and right. With my code the window shows the image and the scrollbars, but scrolling does not work. The image stays fixed and is not moveable. Can someone help me?
def rdp(): root5 = Toplevel() root5.title("GeoDocPro") root5.state('zoomed') scrollbar = Scrollbar(root5) scrollbar.pack( side = RIGHT, fill = Y ) img = ImageTk.PhotoImage(Image.open("C:\Software_Development/RDP.jpg")) panel = Label(root5, image = img) panel.pack(side = "bottom", fill = "both", expand = "no") scrollbar.config( command = root5.yview ) root5.mainloop()