I hope you guys can help me. I've got pictures on my Fileserver, which I want to display in a label. Unfortunately, I always get notifications, that the path doesn‘t exist. That's not true. Is there any other way to download the pictures from the fileserver and to display them in a label. Or could anybody tell me how to alter my code, so it may work?
Thanks <3
root = tk.Tk()
root.configure(background="black")
root.attributes("-fullscreen", True)
with smbclient.open_file(fR"\Server/{picture}", username=username, password=password) as file:
image = ImageTk.PhotoImage(Image.open(file))
tk.Label(root, image=image).place(x=0, y=0, anchor=tk.CENTER)
root.mainloop()