Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/ImageTk.cpython-310.pyc

92 lines
6.8 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@s<>ddlmZddlZddlmZddlmZddlmZm Z dZ
e
r(ddl m Z dd d<0E>Z d dd<17>ZGdd<19>d<19>ZGdd<1B>d<1B>Zd!dd<1E>ZdS)"<22>)<01> annotationsN)<01>BytesIO)<01>Any<6E>)<02>Image<67> ImageFileF)<01> CapsuleType<70>kw<6B>dict[str, Any]<5D>return<72>ImageFile.ImageFile | NonecCs@d}d|vr |<00>d<01>}n d|vrt|<00>d<02><01>}|sdSt<02>|<01>S)N<>file<6C>data)<04>poprr<00>open)r <00>source<63>r<00>n/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/ImageTk.py<70>_get_image_from_kw+s 
r<00>command<6E>str<74>photo<74>PhotoImage | tkinter.PhotoImage<67>ptrr<00>Nonec Csb|j}z |<03>||t|<02><01>WdStjy0ddlm}|<04>|<03><08><00>|<03>||t|<02><01>YdSw)Nr)<01>
_imagingtk) <09>tk<74>call<6C>repr<70>tkinter<65>TclError<6F>r<00>tkinit<69>
interpaddr)rrrrrrrr<00>_pyimagingtkcall6s <02>r$c@sReZdZdZ  ddd d <0C>Zdd d<0E>Zddd<11>Zddd<14>Zddd<16>Zd dd<1A>Z dS)!<21>
PhotoImagea3
A Tkinter-compatible photo image. This can be used
everywhere Tkinter expects an image object. If the image is an RGBA
image, pixels having alpha 0 are treated as transparent.
The constructor takes either a PIL image, or a mode and a size.
Alternatively, you can use the ``file`` or ``data`` options to initialize
the photo image object.
:param image: Either a PIL image, or a mode string. If a mode string is
used, a size must also be given.
:param size: If the first argument is a mode string, this defines the size
of the image.
:keyword file: A filename to load the image from (using
``Image.open(file)``).
:keyword data: An 8-bit string containing image data (as loaded from an
image file).
N<>image<67>Image.Image | str | None<6E>size<7A>tuple[int, int] | Noner rr rcKs<>|durt|<03>}|durd}t|<04><01>t|t<03>r&|}d}|dur%d}t|<04><01>n#|j}|dkr>|<01><05>|<01><06>|jr<|jjnd}|j}|\|d<|d<|dvrRt <09>
|<05>}||_ ||_ t jdi|<03><01>|_|jj|_|ro|<00>|<01>dSdS) N<>Image is requiredz+If first argument is mode, size is required<65>P<>RGB<47>width<74>height)<04>1<>Lr,<00>RGBAr)r<00>
ValueError<EFBFBD>
isinstancer<00>mode<64>apply_transparency<63>load<61>paletter(r<00> getmodebase<73>_PhotoImage__mode<64>_PhotoImage__sizerr%<00>_PhotoImage__photor<00>paste)<06>selfr&r(r <00>msgr4rrr<00>__init__]s8
<02>

<04>zPhotoImage.__init__cC<01>Xz|jj}Wn
tyYdSwd|j_z |jj<03>dd|<01>WdSty+YdSw<00>Nr&<00>delete)r;<00>name<6D>AttributeErrorrr<00> Exception<6F>r=rCrrr<00>__del__<5F><00>  <02> <02>zPhotoImage.__del__rcC<01>
t|j<01>S)z<>
Get the Tkinter photo image identifier. This method is automatically
called by Tkinter whenever a PhotoImage object is passed to a Tkinter
method.
:return: A Tkinter photo image identifier (a string).
)rr;<00>r=rrr<00>__str__<5F><00>
zPhotoImage.__str__<5F>intcC<01>
|jdS<00>zU
Get the width of the image.
:return: The width, in pixels.
r<00>r:rJrrrr-<00><00>
zPhotoImage.widthcCrN<00>zW
Get the height of the image.
:return: The height, in pixels.
rrPrJrrrr.<00>rQzPhotoImage.height<68>im<69> Image.ImagecCsX|<01><00>}|j}|<03><02>r|j|jkr#tj<06>|j|j<08>}|<03> ||<03>|j
}t d|j |<02>dS)aF
Paste a PIL image into the photo image. Note that this can
be very slow if the photo image is displayed.
:param im: A PIL image. The size must match the target region. If the
mode does not match, the image is converted to the mode of
the bitmap image.
<20>PyImagingPhotoN) <0A>getimrS<00>isblockr4r9r<00>core<72> new_blockr(<00>convert2rr$r;)r=rSrr&<00>blockrrrr<<00>s
 zPhotoImage.paste)NN)r&r'r(r)r rr r<00>r r<00>r r<00>r rM)rSrTr r)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r?rGrKr-r.r<rrrrr%Is <0C>
)
r%c@sDeZdZdZddd d
<EFBFBD>Zdd d <0C>Zddd<0F>Zddd<11>Zddd<14>ZdS)<1A> BitmapImagea<65>
A Tkinter-compatible bitmap image. This can be used everywhere Tkinter
expects an image object.
The given image must have mode "1". Pixels having value 0 are treated as
transparent. Options, if any, are passed on to Tkinter. The most commonly
used option is ``foreground``, which is used to specify the color for the
non-transparent parts. See the Tkinter documentation for information on
how to specify colours.
:param image: A PIL image.
Nr&<00>Image.Image | Noner rr rcKsR|durt|<02>}|durd}t|<03><01>|j|_|j|_tjdd|<01><08>i|<02><01>|_ dS)Nr*rr)
rr2r4<00>_BitmapImage__moder(<00>_BitmapImage__sizerrc<00>tobitmap<61>_BitmapImage__photo)r=r&r r>rrrr?<00>szBitmapImage.__init__cCr@rA)rhrCrDrrrErFrrrrG<00>rHzBitmapImage.__del__rMcCrNrO<00>rfrJrrrr-<00>rQzBitmapImage.widthcCrNrRrirJrrrr.<00>rQzBitmapImage.heightrcCrI)z<>
Get the Tkinter bitmap image identifier. This method is automatically
called by Tkinter whenever a BitmapImage object is passed to a Tkinter
method.
:return: A Tkinter bitmap image identifier (a string).
)rrhrJrrrrK<00>rLzBitmapImage.__str__)N)r&rdr rr rr\r^r]) r_r`rarbr?rGr-r.rKrrrrrc<00>s
rcrTcCs,t<00>d|<00><02>|<00><03>f<02>}td||<01><05><00>|S)z:Copies the contents of a PhotoImage to a PIL image memory.r1<00>PyImagingPhotoGet)r<00>newr-r.r$rV)rrSrrr<00>getimagesrl)r r
r r )rrrrrrr r)rr%r rT)<12>
__future__rr<00>ior<00>typingrr!rr<00> TYPE_CHECKING<4E>_typingrrr$r%rcrlrrrr<00><module>s    

zA