the error : AttributeError: 'str' object has no attribute 'png'

Sans_titre.png

Can you please copy/paste all your code here because I’m not seeing an object called str in the screenshot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.