I'm learning python and tkinter from scratch, by my own. I have this button:
info = tk.PhotoImage(file= "./assets/info.png")
boton_info = ttk.Button(f2, width=30, image= info)
boton_info.grid(row=2, column=3, sticky="nwe", padx=15)
I want to display a little info button. The img is 512x512 and it displays too big. How can I resize the img and display it inside the Button??
I've tried this alternative to resize the img:
info_g = Image.open("./assets/info.png")
info = info_g.resize((30,30), Image.LANCZOS)
boton_info = ttk.Button(f2, width=30, image=info)
But I get this error error