Les JPG dans Tkinter
pythapprenti
Messages postés
1
Date d'inscription
Statut
Membre
Dernière intervention
-
trifou -
trifou -
Bonjour, j'ai essayé de mettre un JPG sur une interface graphique mais je reçois toujours :
_tkinter.TclError: couldn't recognize data in image file "th.JPG"
Voici mon code :
# _*_ coding:Latin-1 _*
from tkinter import *
fenetre = Tk()
photo = PhotoImage(file = "voiture.JPG")
photo.pack()
Est-ce que quelqu'un sait pourquoi et comment on fait pour que ça marche ?
_tkinter.TclError: couldn't recognize data in image file "th.JPG"
Voici mon code :
# _*_ coding:Latin-1 _*
from tkinter import *
fenetre = Tk()
photo = PhotoImage(file = "voiture.JPG")
photo.pack()
Est-ce que quelqu'un sait pourquoi et comment on fait pour que ça marche ?
A voir également:
- _tkinter.tclerror: couldn't recognize data in image file
- Convertir hevc en jpg - Guide
- Réduire taille jpg - Guide
- Telecharger jpg - Télécharger - Photo & Graphisme
- Convertir jpg en pdf - Télécharger - PDF
- Image jpg gratuite - Guide