Bonjour,
Je voulais afficher une image sur une Frame, pour cela j'ai tapé le code suivant:
photo = PhotoImage(file ='C:\Documents and Settings\Propriétaire\Bureau\jason2.jpg')
Traceback (most recent call last):
File "C:\Documents and Settings\Propriétaire\Bureau\tes.py", line 39, in ?
photo = PhotoImage(file ='C:\Documents and Settings\Propriétaire\Bureau\jason2.jpg')
File "C:\Python24\Lib\lib-tk\Tkinter.py", line 3209, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "C:\Python24\Lib\lib-tk\Tkinter.py", line 3165, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't recognize data in image file "C:\Documents and Settings\Propriétaire\Bureau\jason2.jpg"
Je vois ou le problème ??
Merci de me renseigner
Partager