o
    OZŽhÙ  ã                
   @   sô  d Z ddlZddlZddlmZ ddlmZ dd„ Zej	 
ej	 e¡¡d Ze ¡  ej d¡Zej ¡ ZdZe ¡  e ej¡ eƒ  ertej ¡ D ]ZejejksaejejkrdejejkrddZqLejejkrÕejejkrÕe d	ƒ e !¡ D ][Z"e e"¡Z#e#r•e$e#ƒd
kr•e de"› de$e#ƒ› dƒ ne#du r¢e de"› dƒ ne de"› de# %dd¡› dƒ de"v rÓe" 
d¡d Z&e&dv rÓee#ƒZ'ej( )e'de& ¡Z*e +e*d¡ qxqLejejkríejej,kríe dƒ e -ej.d¡ qLejejkr(ejej/kr(e dƒ e !¡ Z0e e0ƒ e$e0ƒdkr'e de0d › de 1e0d ¡› ƒ e de 1d¡ƒ qLejejkrZejej2krZe d ƒ e ej¡ e3ej	 4ed!d"¡d#ƒZ5e5 6¡ Z7e -d$e7¡ e5 8¡  qLejejej9fv rgeƒ  qLej :¡  e ;d%¡ esGe <¡  dS )&a8   pygame.examples.scrap_clipboard

Demonstrates the clipboard capabilities of pygame.

Copy/paste!


Keyboard Controls
-----------------

g - get and print types in clipboard. If, image blit to screen.
p - place some text into clipboard
a - print types available in the clipboard
i - put image into the clipboard
é    N)ÚBytesIOc                   C   s$   t dƒ t dƒ t dƒ t dƒ d S )Nz:Press the 'g' key to get all of the current clipboard dataz4Press the 'p' key to put a string into the clipboardz@Press the 'a' key to get a list of the currently available typesz4Press the 'i' key to put an image into the clipboard)Úprint© r   r   úN/var/www/auris/lib/python3.10/site-packages/pygame/examples/scrap_clipboard.pyÚusage   s   r   )éÈ   r   TFz&Getting the different clipboard data..iô  zType z
 : (large z byte buffer)z : Nonez : 'ÚasciiÚignoreú'Úimageú/é   )ZbmpZpngZjpgÚ.)r   r   zPlacing clipboard text.s$   Hello. This is a message from scrap.z/Getting the available types from the clipboard.z	Contains z: zContains _INVALID_: Z	_INVALID_z!Putting image into the clipboard.Údataz
liquid.bmpÚrbz	image/bmpé(   )=Ú__doc__ÚosZpygameZpgZpygame.scrapZscrapÚior   r   ÚpathÚsplitÚabspathÚ__file__Zmain_dirÚinitÚdisplayÚset_modeÚscreenÚtimeZClockÚcZgoingZSCRAP_CLIPBOARDÚeventÚgetÚeÚtypeZQUITZKEYDOWNÚkeyZK_ESCAPEZK_gr   Z	get_typesÚtÚrÚlenÚdecodeZnamehintÚfr   ÚloadZloaded_surfZblitZK_pÚputZ
SCRAP_TEXTZK_aÚtypesÚcontainsZK_iÚopenÚjoinÚfpÚreadÚbufÚcloseZMOUSEBUTTONDOWNÚflipZtickÚquitr   r   r   r   Ú<module>   sx   
$
€ó"€
€

Ð1