Hacked By AnonymousFox
�
^
bc @ sz d Z d d l m Z d d l Z d d l Z d d l m Z d e j f d � � YZ e
d k rv e j d d � n d S(
sT Test (selected) IDLE Edit menu items.
Edit modules have their own test files files
i����( t requiresN( t PyShellt PasteTestc B sb e Z d Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z
d � Z RS( se Test pasting into widgets that allow pasting.
On X11, replacing selections requires tk fix.
c C s� t d � t j � | _ } | j � t j | � t j | � | _ t j | � | _
t j | � | _ | j
� | j d � d S( Nt guit two( R t tkt Tkt roott withdrawR t
fix_x11_pastet Textt textt Entryt entryt Spinboxt spint clipboard_cleart clipboard_append( t clsR ( ( sD /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
setUpClass s
c C sP | ` | ` | ` | j j � | j j � | j j � | j j � | ` d S( N( R R
R R R t update_idletaskst updatet destroy( R ( ( sD /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
tearDownClass s
c C se | j } d \ } } | j d d � | j d d | � | j d � | j | j d d � | � d S( s+ Test pasting into text without a selection.t s onetwo
s 1.0t endt ones <<Paste>>N( R s onetwo
( R t deletet insertt event_generatet assertEqualt get( t selfR t tagt ans( ( sD /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt test_paste_text_no_selection&