+ 3

PYTHON tkinter image

How could I remove the border around the image ? https://www.zupimages.net/up/18/44/2zjw.png code : carte = Canvas(window, height=116, width=80) carte_img = PhotoImage(file="./img/cartes/coeur/as.png") carte.create_image(41, 59, image=carte_img) carte.pack() If I add "bg='red'" on the first line, it will not change the border color (white)

3rd Nov 2018, 4:08 PM
NoxFly
NoxFly - avatar
3 Respuestas
+ 1
Wongvarit its not the pic which have the border
6th Nov 2018, 2:45 PM
NoxFly
NoxFly - avatar
+ 1
photo=PhotoImage(file="path-to-file") Label(image=photo, bd="0").grid()
21st Aug 2021, 3:07 PM
Sancho Godinho
Sancho Godinho - avatar
0
you might use photoshop to remove border,it is easier way.
6th Nov 2018, 2:31 PM
Wongvarit