HEX
Server: LiteSpeed
System: Linux standart12.isimtescil.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: mvqmakin (1201)
PHP: 8.1.34
Disabled: dl,exec,shell_exec,system,passthru,popen,pclose,proc_open,mail,proc_nice,proc_terminate,proc_get_status,proc_close,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellcmd,escapeshellarg,shell-exec,crack_check,crack_closedict,crack_getlastmessage,crack_opendict,symlink,ini_restore,posix_getpwuid,ini_sefind,grep,sh2_exec,diskfreespace,disk_free_space,disk_total_space,highlight_file,link,lchgrp,lchown,show_source,sendmail
Upload Files
File: //lib64/python2.7/idlelib/idle_test/test_editmenu.pyc
�
{fc@szdZddlmZddlZddlZddlmZdejfd��YZ	e
dkrvejdd	�ndS(
sTTest (selected) IDLE Edit menu items.

Edit modules have their own test files files
i����(trequiresN(tPyShellt	PasteTestcBsbeZdZed��Zed��Zd�Zd�Zd�Zd�Z	d�Z
d�ZRS(	seTest pasting into widgets that allow pasting.

    On X11, replacing selections requires tk fix.
    cCs�td�tj�|_}|j�tj|�tj|�|_tj	|�|_
tj|�|_|j
�|jd�dS(Ntguittwo(RttktTktroottwithdrawRt
fix_x11_pastetTextttexttEntrytentrytSpinboxtspintclipboard_cleartclipboard_append(tclsR((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
setUpClasss



cCsP|`|`|`|jj�|jj�|jj�|jj�|`dS(N(RR
RRRtupdate_idletaskstupdatetdestroy(R((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
tearDownClasss



cCse|j}d\}}|jdd�|jdd|�|jd�|j|jdd�|�dS(	s+Test pasting into text without a selection.tsonetwo
s1.0tendtones	<<Paste>>N(Rsonetwo
(Rtdeletetinserttevent_generatetassertEqualtget(tselfRttagtans((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_no_selection&s	
cCse|j}d\}}|jdd�|jdd|�|jd�|j|jdd�|�dS(	s(Test pasting into text with a selection.tselstwo
s1.0RRs	<<Paste>>N(R$stwo
(RRRRRR(R RR!R"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_selection/s	
cCsl|j}d\}}|jdd�|jdd�|jd|�|jd�|j|j�|�dS(s/Test pasting into an entry without a selection.itonetwoRRs	<<Paste>>N(iR&(R
RRtselect_rangeRRR(R R
RR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_no_selection8s	
cCsl|j}d\}}|jdd�|jdd�|jd|�|jd�|j|j�|�dS(s,Test pasting into an entry with a selection.RRiRs	<<Paste>>N(RR(R
RRR'RRR(R R
RR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_selectionDs	
cCso|j}d\}}|jdd�|jdd�|jdd|�|jd�|j|j�|�dS(	s0Test pasting into a spinbox without a selection.iR&RRtranges	<<Paste>>N(iR&(RRRt	selectionRRR(R RRR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_no_selectionNs	
cCso|j}d\}}|jdd�|jdd�|jdd|�|jd�|j|j�|�dS(	s-Test pasting into a spinbox with a selection.RRiRR*s	<<Paste>>N(RR(RRRR+RRR(R RRR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_selectionYs	
(t__name__t
__module__t__doc__tclassmethodRRR#R%R(R)R,R-(((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyRs							
	t__main__t	verbosityi(R0ttest.test_supportRtTkinterRtunittesttidlelibRtTestCaseRR.tmain(((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt<module>sY