Sujet: Re: PIL: orienté objet?
De: bruno.desthuilliers (l' arobase) gmail.com (bruno.desthuilliers@gmail.com)
Groupes: fr.comp.lang.python
Organisation: http://groups.google.com
Date: 05. Jun 2008, 20:53:03
On 1 juin, 17:02, "Rakotomandimby (R12y) Mihamina"
<miham...@infogerance.us> wrote:
Bruno Desthuilliers wrote:
Avec ceci comme traceback
File "/home/mihamina/public_html/ArchiGallery/generate.py",
line 18, in <module>
class MonImage(Image):
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
???
C'est ce que j'obtiens quand je fais un:
img=MonImage.open()
Et en lisant attentivement le traceback, puis en jetant un coup d'oeil
à la doc de PIL, le problème est évident. Puis-je te recommander de
relire ceci:
http://www.pythonware.com/library/pil/handbook/image.htm
"""
The Image module provides a class with the same name which is used to
represent a PIL image. The module also provides a number of factory
functions, including functions to load images from files, and to
create new images.
"""
puis ton traceback ?-)