bonjour,
j'utilise la bibliothèque PIL pour modifier des images, notament la taille.
mais lorsque je lance le script et avant d'afficher les images, un message d'erreur apparait et me dit :
Code Python :
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 525, in __bootstrap_inner
self.run()
File "i:/jeux leo/pythonScript/VPN test/InterfaceFinal_ui.py", line 81, in run
App.AffichageDossier()
File "i:/jeux leo/pythonScript/VPN test/InterfaceFinal_ui.py", line 465, in AffichageDossier
self.Images = Image.open("I://jeux leo/pythonScript/VPN test/Gdossier.gif").convert("RGBA")
AttributeError: class Image has no attribute 'open'
je ne comprend, car dans un autre script, l'erreur n'apparait pas.
je vous montre les modules que j'importe au debut de mon programme :
Code Python :
from threading import Thread
from PIL import Image, ImageTk
from Tkinter import *
import socket, time, sys, os
si quelqu'un a une solution, merci de m'en faire par :)