
    &h                     $	   S r SSKrSSKrSSKJr  SSKJr  S r\R                  R                  \R                  R                  \5      5      S   r\R                  " 5         \R                  R!                  S5      r\R$                  R'                  5       rSr\R                  " 5         \R                   " \R,                  5        \" 5         \(       Ga  \R.                  R1                  5        GHW  r\R4                  \R6                  :X  d4  \R4                  \R8                  :X  a  \R:                  \R<                  :X  a  SrMV  \R4                  \R8                  :X  Ga  \R:                  \R>                  :X  a  \ " S5        \RB                  " 5        H  r"\R0                  " \"5      r#\#(       a"  \$" \#5      S	:  a  \ " S
\" S\$" \#5       S35        O/\#c  \ " S
\" S35        O\ " S
\" S\#RK                  SS5       S35        S\";   d  Mu  \"R                  S5      S   r&\&S;   d  M  \" \#5      r'\RP                  RS                  \'S\&-   5      r*\RW                  \*S5        M     GMu  \R4                  \R8                  :X  aB  \R:                  \RX                  :X  a(  \ " S5        \RZ                  " \R\                  S5        GM  \R4                  \R8                  :X  a  \R:                  \R^                  :X  ap  \ " S5        \RB                  " 5       r0\ " \05        \$" \05      S:  a@  \ " S\0S    S\Rb                  " \0S   5       35        \ " S\Rb                  " S5      5        GMr  GMu  \R4                  \R8                  :X  a  \R:                  \Rd                  :X  a~  \ " S5        \R                   " \R,                  5        \3" \R                  Ri                  \S S!5      S"5      r5\5Rm                  5       r7\RZ                  " S#\75        \5Rq                  5         GM'  \R4                  \R8                  \Rr                  4;   d  GMP  \" 5         GMZ     \R                  Ru                  5         \Rw                  S$5        \(       a  GM  \Rx                  " 5         g)%a7  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                  \    [        S5        [        S5        [        S5        [        S5        g )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     W/var/www/auris/envauris/lib/python3.13/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      sc   
   B 77==23A6 				Z	(GGMMO 

 r!! " XX\\^66RWW2::!5!%%2;;:NEVVrzz!aeervvo:;__&IIaL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 ' VVrzz!aeervvo+,IIbmm%LMVVrzz!aeervvoCDOO%E%L5zA~	%(2ennU1X.F-GHI,enn[.IJ  VVrzz!aeervvo56NN2--.bggll8V\BDIB'')CIIk3'HHJVV

B$6$677G[ \ JJOOFF2Ja eb 	r   