+
     Bi
                         R t ^ RIHt ]! R4       ^ RIt^ RIHt ^ RIt^ RIHt  ! R R]P                  4      t
]R8X  d   ]P                  ! ^R	7       R# R# )
zNTest (selected) IDLE Edit menu items.

Edit modules have their own test files
)requiresguiN)ttk)pyshellc                   V   a  ] tR t^t o Rt]R 4       t]R 4       tR tR t	R t
RtV tR# )		PasteTestz]Test pasting into widgets that allow pasting.

On X11, replacing selections requires tk fix.
c                   \         P                  ! 4       ;V n        pV P                  P                  4        \        P
                  ! V4       \         P                  ! V4      V n        \         P                  ! V4      V n	        \        P                  ! V4      V n        \         P                  ! V4      V n        VP                  4        VP                  R 4       R# )twoN)tkTkrootwithdrawr   fix_x11_pasteTexttextEntryentryr   tentrySpinboxspinclipboard_clearclipboard_append)clsr   s   & 6/usr/lib/python3.14/idlelib/idle_test/test_editmenu.py
setUpClassPasteTest.setUpClass   s    %%'!4d#774=HHTN	YYt_
::d#e$    c                    V = V =V =V P                  P	                  4        V P                  P                  4        V P                  P                  4        V =R # )N)r   r   r   r   r   update_idletasksdestroy)r   s   &r   tearDownClassPasteTest.tearDownClass   sD    Hci  "!!#Hr   c           	     R   V P                   pR F  w  r#V P                  W#R7      ;_uu_ 4        VP                  RR4       VP                  RRV4       VP	                  R4       V P                  VP                  RR4      V4       RRR4       K  	  R#   + '       g   i     K  ; i)z4Test pasting into text with and without a selection.)tagansz1.0endone	<<Paste>>N)) zonetwo
)selztwo
)r   subTestdeleteinsertevent_generateassertEqualget)selfr   r#   r$   s   &   r   test_paste_textPasteTest.test_paste_text%   s    yy:HC#//E5)E5#.##K0  %!7=	 0/ ;///s   ABB&c           	        V P                   V P                  3 F  pR F  w  r#V P                  WVR7      ;_uu_ 4        VP                  ^ R4       VP	                  ^ R4       VP                  ^ V4       VP                  R4       V P                  VP                  4       V4       RRR4       K  	  K  	  R#   + '       g   i     K  ; i)z8Test pasting into an entry with and without a selection.r%   )r   r%   r$   r&   r'   N)    onetwo)r%   r	   )	r   r   r*   r+   r,   select_ranger-   r.   r/   )r0   r   r%   r$   s   &   r   test_paste_entryPasteTest.test_paste_entry/   s     ZZ,E9\\C\@@LLE*LLE*&&q#.((5$$UYY[#6 A@ : -@@@s   A(B8	8C	c                r   V P                   pR F  w  r#V P                  W#R7      ;_uu_ 4        VP                  ^ R4       VP                  ^ R4       VP	                  R^ V4       VP                  R4       V P                  VP                  4       V4       RRR4       K  	  R#   + '       g   i     K  ; i)z9Test pasting into a spinbox with and without a selection.r%   )r%   r$   r&   ranger'   Nr4   )r   r*   r+   r,   	selectionr-   r.   r/   )r0   r   r%   r$   s   &   r   test_paste_spinPasteTest.test_paste_spin<   s     yy5HC#//Au%Au%w3/##K0  S1 0/ 6///s   A)B%%B6 N)__name__
__module____qualname____firstlineno____doc__classmethodr   r    r1   r8   r=   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sF      	% 	%  >7
2 
2r   r   __main__)	verbosity)rD   test.supportr   tkinterr
   r   unittestidlelibr   TestCaser   r@   mainr?   r   r   <module>rQ      sP    "     :2!! :2z zMMA r   