
    i                        d Z ddlZddlZddlmZ ddlmZ d Zej                  j                  ej                  j                  e            d   Z ej                          ej                  j!                  d      Zej$                  j'                         ZdZ ej                           ej                   ej,                          e        er~ej.                  j1                         D ]1  Zej4                  ej6                  k(  s2ej4                  ej8                  k(  rej:                  ej<                  k(  rdZRej4                  ej8                  k(  rej:                  ej>                  k(  r e d        ejB                         D ]  Z" ej0                  e"      Z#e#r! e$e#      d	kD  r e d
e" d e$e#       d       n.e# e d
e" d       n e d
e" de#jK                  dd       d       de"v ske"j                  d      d   Z&e&dv s ee#      Z'ejP                  jS                  e'de&z         Z*ejW                  e*d        ^ej4                  ej8                  k(  r@ej:                  ejX                  k(  r' e d        ejZ                  ej\                  d       ej4                  ej8                  k(  rej:                  ej^                  k(  rm e d        ejB                         Z0 e e0        e$e0      dkD  s e de0d    d ejb                  e0d                  e d ejb                  d             Vej4                  ej8                  k(  rej:                  ejd                  k(  r} e d        ej                   ej,                          e3ej                  ji                  ed d!      d"      Z5e5jm                         Z7 ejZ                  d#e7       e5jq                          ej4                  ej8                  ejr                  fv s+ e        4 ej                  ju                          ejw                  d$       er~ ejx                          y)%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                  \    t        d       t        d       t        d       t        d       y )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     i/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/pygame/examples/scrap_clipboard.pyusager	      s&    	
FG	
@A	
LM	
@Ar   )   r
   TFz&Getting the different clipboard data..i  zType z
 : (large z byte buffer)z : Nonez : 'asciiignore'image/   )bmppng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_: 	_INVALID_z!Putting image into the clipboard.dataz
liquid.bmprbz	image/bmp(   )=__doc__ospygamepgpygame.scrapscrapior   r	   pathsplitabspath__file__main_dirinitdisplayset_modescreentimeClockcgoingSCRAP_CLIPBOARDeventgetetypeQUITKEYDOWNkeyK_ESCAPEK_gr   	get_typestrlendecodenamehintfr   loadloaded_surfblitK_pput
SCRAP_TEXTK_atypescontainsK_iopenjoinfpreadbufcloseMOUSEBUTTONDOWNfliptickquitr   r   r   <module>rR      s|   
   B 77==23A6 				Z	(GGMMO 

 r!! " XX\\^ -66RWW2::!5!%%2;;:NEVVrzz!aeervvo:;$U__& 9EIIaLQ#E!Js1vhmDEYE!G,-E!D'8)D(EQGHa< wws|AH#88#AJ&(hhmmAsX~&FK89 VVrzz!aeervvo+,EIIbmm%LMVVrzz!aeervvoCD#EOO%E%L5zA~	%(2nennU1X.F-GHI,nenn[.IJVVrzz!aeervvo56ENN2--.bggll8V\BDIB'')CEIIk3'HHJVV

B$6$677G[-\ JJOOFF2Ja b 	r   